Basic I2S API - for the STM32 Depends on https://github.com/pschatzmann/stm32f411-i2s We provide a direct and a DMA implementation. When using DMA, we just add a write and read buffer and pass some parameters to the STM32 API! Alternatively we can define the input stream or the output.
More...
#include <I2SSTM32.h>
|
void | deleteBuffers () |
|
uint32_t | getMode (I2SConfigStd &cfg) |
|
uint32_t | getSampleRate (I2SConfigStd &cfg) |
|
uint32_t | getStandard (I2SConfigStd &cfg) |
|
size_t | readBytesDMA (void *dest, size_t size_bytes) |
|
void | setupDefaultI2SParameters () |
|
bool | startI2S () |
|
bool | startI2SDMA () |
|
uint32_t | toDataFormat (int bits_per_sample) |
|
size_t | writeBytesDMA (const void *src, size_t size_bytes) |
|
size_t | writeBytesExt (const void *src, size_t size_bytes) |
|
|
bool | active = false |
|
I2SConfigStd | cfg |
|
stm32_i2s::I2SSettingsSTM32 | i2s_stm32 |
|
uint32_t | last_write_ms = 0 |
|
Stream * | p_dma_in = nullptr |
|
Print * | p_dma_out = nullptr |
|
BaseBuffer< uint8_t > * | p_rx_buffer = nullptr |
|
BaseBuffer< uint8_t > * | p_tx_buffer = nullptr |
|
bool | result = true |
|
bool | stm32_write_active = false |
|
bool | use_dma = true |
|
Basic I2S API - for the STM32 Depends on https://github.com/pschatzmann/stm32f411-i2s We provide a direct and a DMA implementation. When using DMA, we just add a write and read buffer and pass some parameters to the STM32 API! Alternatively we can define the input stream or the output.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
The documentation for this class was generated from the following file: