|
arduino-audio-tools
|
Basic I2S API - for the ESP8266 Only 16 bits are supported ! More...
#include <I2SESP8266.h>
Public Member Functions | |
| 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 (I2SConfigStd cfg) |
| starts the DAC | |
| bool | begin (RxTxMode mode=TX_MODE) |
| starts the DAC with the default config | |
| I2SConfigStd | config () |
| provides the actual configuration | |
| I2SConfigStd | defaultConfig (RxTxMode mode) |
| Provides the default configuration. | |
| void | end () |
| stops the I2C and unistalls the driver | |
| bool | setAudioInfo (AudioInfo) |
| Potentially updates the sample rate (if supported) | |
Protected Member Functions | |
| size_t | readBytes (void *dest, size_t size_bytes) |
| reads the data from the I2S interface | |
| size_t | writeBytes (const void *src, size_t size_bytes) |
| writes the data to the I2S interface | |
| size_t | writeExt (const void *src, size_t size_bytes) |
| writes the data by making shure that we send 2 channels 16 bit data | |
Protected Attributes | |
| I2SConfigStd | cfg |
Friends | |
| class | I2SStream |
Basic I2S API - for the ESP8266 Only 16 bits are supported !
|
inline |
we assume the data is already available in the buffer
|
inline |
We limit the write size to the buffer size.
|
inline |
starts the DAC
|
inline |
provides the actual configuration
|
inline |
Provides the default configuration.
|
inline |
stops the I2C and unistalls the driver
reads the data from the I2S interface
writes the data to the I2S interface
writes the data by making shure that we send 2 channels 16 bit data
|
protected |