|
arduino-audio-tools
|
Serial Peripheral Interface (SPI) Audio. More...

Classes | |
| class | SPIAudioMaster |
| SPI master endpoint for remote audio sink configuration and PCM data transfer. More... | |
| class | SPIAudioSlave |
| SPI Audio Slave endpoint matching SPIAudioMaster protocol. More... | |
| class | SPIRegAudioMaster |
| SPI master which streams audio to a SPIRegAudioSlave (based on the TinySPISlave library) using its register map: it defines the AudioInfo and the mime type and writes the audio data according to the space which is reported by the available-space register. More... | |
| struct | SPIRegAudioMasterConfig |
| Configuration for SPIRegAudioMaster. More... | |
| struct | SPIRegAudioSlaveConfig |
| Configuration for SPIRegAudioSlave. More... | |
Enumerations | |
| enum class | SPIAudioCommand : uint8_t { SetMime = 1 , SetAudioInfo = 2 , WriteData = 5 , GetAvailableBufferSize = 6 , GetFilledBufferSize = 7 , Clear = 8 } |
| SPI command ids used by SPIAudioMaster. More... | |
| enum | SPIRegAudioRegister : uint8_t { SPIREG_NOP = 0x00 , SPIREG_AUDIO_INFO = 0x01 , SPIREG_MIME = 0x02 , SPIREG_AVAILABLE = 0x03 , SPIREG_DATA = 0x10 } |
| Register map shared by SPIRegAudioMaster and SPIRegAudioSlave. More... | |
Serial Peripheral Interface (SPI) Audio.
|
strong |
SPI command ids used by SPIAudioMaster.
Frame format (master -> slave):
Response format (slave -> master):
| Enumerator | |
|---|---|
| SetMime | |
| SetAudioInfo | |
| WriteData | |
| GetAvailableBufferSize | |
| GetFilledBufferSize | |
| Clear | |
| enum SPIRegAudioRegister : uint8_t |
Register map shared by SPIRegAudioMaster and SPIRegAudioSlave.
Wire protocol (compatible with the TinySPISlave RegisterMap):
[cmd][bytes...] (CS low .. CS high)[cmd|0x80][n] (n = number of bytes wanted)Address 0 is reserved: the dummy bytes clocked by the master during the reply frame are ignored by the slave.
All multi byte values are little endian.