|
arduino-audio-tools
|
Basic I2S API - for the ESP8266 Only 16 bits are supported ! More...
#include <I2SDriverESP8266.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. | |
| virtual bool | begin (I2SConfig cfg)=0 |
| 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 !
|
inlinevirtual |
we assume the data is already available in the buffer
Implements I2SDriverBase.
|
inlinevirtual |
We limit the write size to the buffer size.
Implements I2SDriverBase.
|
pure virtualinherited |
Implemented in I2SDriverESP32.
|
inline |
starts the DAC
|
inlinevirtual |
provides the actual configuration
Implements I2SDriverBase.
|
inlinevirtual |
Provides the default configuration.
Implements I2SDriverBase.
|
inlinevirtual |
stops the I2C and unistalls the driver
Implements I2SDriverBase.
|
inlineprotectedvirtual |
reads the data from the I2S interface
Implements I2SDriverBase.
|
inlinevirtual |
Potentially updates the sample rate (if supported)
Implements I2SDriverBase.
|
inlineprotectedvirtual |
writes the data to the I2S interface
Implements I2SDriverBase.
|
inlineprotected |
writes the data by making shure that we send 2 channels 16 bit data
|
friend |
|
protected |