DMIC buffer context structure. More...
#include <dmic.h>
Data Fields | |
| uint8_t | channel |
| uint8_t * | buffer |
| uint32_t | buffer_size |
| uint32_t | offset_bytes |
| uint32_t | available_bytes |
DMIC buffer context structure.
Holds runtime buffer information for each DMIC channel including pointer, size, sample count, and available-byte metadata.
| uint8_t dmic_buffer_context_s::channel |
DMIC channel number
| uint8_t* dmic_buffer_context_s::buffer |
FIFO: application output buffer. DMA: same ring buffer configured through dmic_dma_config_t.buffer
| uint32_t dmic_buffer_context_s::buffer_size |
Total buffer size in bytes
| uint32_t dmic_buffer_context_s::offset_bytes |
Data offset in bytes. DMA mode: offset of ready DMA period inside the ring buffer. FIFO mode normally returns 0
| uint32_t dmic_buffer_context_s::available_bytes |
Number of bytes currently available from offset_bytes. A value of 0 indicates no data available in nonblocking mode