Basic I2S API for the ESP32 (using the new API). https://docs.espressif.com/projects/esp-idf/en/v5.0.1/esp32/api-reference/peripherals/i2s.html#i2s-communication-mode.
More...
#include <I2SESP32V1.h>
|
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 (I2SConfigESP32V1 cfg) |
| starts the DAC
|
|
bool | begin (RxTxMode mode) |
| starts the DAC with the default config
|
|
I2SConfigESP32V1 | config () |
| provides the actual configuration
|
|
I2SConfigESP32V1 | 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
|
|
◆ begin() [1/2]
starts the DAC with the current config - if not started yet. If I2S has been started there is no action and we return true
◆ begin() [2/2]
The documentation for this class was generated from the following file: