3 #if defined(ARDUINO_ARCH_SAMD)
5 #include "AudioTools/CoreAudio/AudioI2S/I2SConfig.h"
7 #define IS_I2S_IMPLEMENTED
39 bool begin() {
return begin(cfg); }
42 void end() { I2S.end(); }
47 size_t writeBytes(
const void *src,
size_t size_bytes) {
48 return I2S.write((
const uint8_t *)src, size_bytes);
51 size_t readBytes(
void *src,
size_t size_bytes) {
52 return I2S.read(src, size_bytes);
55 int available() {
return I2S.available(); }
57 int availableForWrite() {
return I2S.availableForWrite(); }
63 using I2SDriver = I2SDriverSAMD;
RxTxMode
The Microcontroller is the Audio Source (TX_MODE) or Audio Sink (RX_MODE). RXTX_MODE is Source and Si...
Definition: AudioTypes.h:28