Basic I2S API - for the ESP32. If we receive 1 channel, we expand the result to 2 channels.
More...
|
int | available () |
| we assume the data is already available in the buffer
|
|
int | availableForWrite () |
| We limit the write size to the buffer size.
|
|
bool | begin () |
|
bool | begin (I2SConfigESP32 cfg) |
| starts the DAC
|
|
bool | begin (RxTxMode mode) |
| starts the DAC with the default config
|
|
I2SConfigESP32 | config () |
| provides the actual configuration
|
|
I2SConfigESP32 | defaultConfig (RxTxMode mode) |
| Provides the default configuration.
|
|
void | end () |
| stops the I2C and unistalls the driver
|
|
size_t | readBytes (void *dest, size_t size_bytes) |
|
bool | setAudioInfo (AudioInfo info) |
| Potentially updates the sample rate (if supported)
|
|
void | setWaitTimeReadMs (TickType_t ms) |
|
void | setWaitTimeWriteMs (TickType_t ms) |
|
size_t | writeBytes (const void *src, size_t size_bytes) |
| writes the data to the I2S interface
|
|
Basic I2S API - for the ESP32. If we receive 1 channel, we expand the result to 2 channels.
- Author
- Phil Schatzmann
- Copyright
- GPLv3