Astra MCU SDK Peripheral Driver Library
Loading...
Searching...
No Matches
dmic_buffer_context_s Struct Reference

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

Detailed Description

DMIC buffer context structure.

Holds runtime buffer information for each DMIC channel including pointer, size, sample count, and available-byte metadata.

Field Documentation

◆ channel

uint8_t dmic_buffer_context_s::channel

DMIC channel number

◆ buffer

uint8_t* dmic_buffer_context_s::buffer

FIFO: application output buffer. DMA: same ring buffer configured through dmic_dma_config_t.buffer

◆ buffer_size

uint32_t dmic_buffer_context_s::buffer_size

Total buffer size in bytes

◆ offset_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

◆ available_bytes

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