23 I2S_RIGHT_JUSTIFIED_MODE,
24 I2S_LEFT_JUSTIFIED_MODE
31 I2SClass(uint8_t deviceIndex, uint8_t clockGenerator, uint8_t sdPin, uint8_t sckPin, uint8_t fsPin){
32 create(deviceIndex,clockGenerator,sdPin,sckPin,fsPin );
35 void create(uint8_t deviceIndex, uint8_t clockGenerator, uint8_t sdPin, uint8_t sckPin, uint8_t fsPin);
38 int begin(
int mode,
long sampleRate,
int bitsPerSample);
40 int begin(
int mode,
int bitsPerSample);
44 virtual int available();
50 virtual size_t write(uint8_t);
51 virtual size_t write(
const uint8_t *buffer,
size_t size);
53 virtual int availableForWrite();
55 int read(
void* buffer,
size_t size);
58 size_t write(int32_t);
59 size_t write(
const void *buffer,
size_t size);
64 void setBufferSize(
int bufferSize);