arduino-audio-tools
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
I2SDriverESP8266 Class Reference

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
 

Detailed Description

Basic I2S API - for the ESP8266 Only 16 bits are supported !

Author
Phil Schatzmann

The documentation for this class was generated from the following file: