Basic I2S API - for the Arduino Nano BLE Sense See https://content.arduino.cc/assets/Nano_BLE_MCU-nRF52840_PS_v1.1.pdf Douplex mode (RXTX_MODE) is currently not supported, but it should be quite easy to implement.
More...
#include <I2SDriverNanoSenseBLE.h>
Basic I2S API - for the Arduino Nano BLE Sense See https://content.arduino.cc/assets/Nano_BLE_MCU-nRF52840_PS_v1.1.pdf Douplex mode (RXTX_MODE) is currently not supported, but it should be quite easy to implement.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ I2SDriverNanoBLE()
◆ available()
◆ availableForWrite()
| int availableForWrite |
( |
| ) |
|
|
inlinevirtual |
◆ begin() [1/3]
◆ begin() [2/3]
◆ begin() [3/3]
starts the I2S with the default config in TX Mode
◆ clearStream()
Deactivate alternative API: don't forget to call begin()
◆ config()
◆ defaultConfig()
◆ digitalPinToPinName()
| int digitalPinToPinName |
( |
int |
pin | ) |
|
|
inlineprotected |
◆ end()
◆ flush()
Discards any audio already queued in the driver's own output buffer (e.g. the I2S DMA buffer) but not yet physically played - useful when switching to unrelated audio content (e.g. AudioPlayer moving to the next track) to stop stale samples from continuing to play out during the switch. Default no-op, since not every backend can support this; override where the underlying driver allows it.
Reimplemented in I2SDriverESP32, and I2SDriverESP32V1.
◆ getINTENSET()
| unsigned long getINTENSET |
( |
| ) |
|
|
inlineprotected |
Determine the INTENSET value.
◆ getPinName()
| int getPinName |
( |
int |
pin | ) |
|
|
inlineprotected |
Provides the arduino or unconverted pin name.
◆ readBytes()
| size_t readBytes |
( |
void * |
dest, |
|
|
size_t |
size_bytes |
|
) |
| |
|
inlinevirtual |
◆ releaseBuffers()
◆ setAudioInfo()
Potentially updates the sample rate (if supported)
Implements I2SDriverBase.
◆ setBufferSize()
| void setBufferSize |
( |
int |
size | ) |
|
|
inline |
◆ setStream()
| void setStream |
( |
Stream & |
stream | ) |
|
|
inline |
alternative API which provides the data directly via a Stream
◆ setupBitWidth()
◆ setupBuffers()
dynamic buffer management
◆ setupClock()
◆ setupMode()
◆ setupPins()
◆ setupRxTx()
◆ startI2SActive()
◆ writeBytes()
| size_t writeBytes |
( |
const void * |
src, |
|
|
size_t |
size_bytes |
|
) |
| |
|
inlinevirtual |
◆ I2SStream
◆ cfg
◆ is_active
The documentation for this class was generated from the following file: