![]() | Astra MCU SDK Peripheral Driver Library |
Initialize DMIC instance runtime and backend.
Return values: DMIC_OK, DMIC_ERROR_INVALID_CONTEXT.
Query static/runtime capability information for one instance.
Return values: DMIC_OK, DMIC_ERROR_INVALID_PARAM, DMIC_ERROR_INVALID_CONTEXT.
Configure one DMIC capture channel.
Return values: DMIC_OK, DMIC_ERROR_INVALID_PARAM, DMIC_ERROR_INVALID_CONTEXT.
Configure sample-rate/clock polarity and input routing.
Return values: DMIC_OK, DMIC_ERROR_INVALID_PARAM, DMIC_ERROR_INVALID_CONTEXT.
Enable selected FIFO interrupt sources.
Return values: DMIC_OK, DMIC_ERROR_INVALID_CONTEXT.
Reset DMIC backend and software runtime defaults.
Return values: DMIC_OK.
Enable DMIC hardware for a configured instance.
Return values: DMIC_OK, DMIC_ERROR_INVALID_CONTEXT.
Disable DMIC hardware for an instance.
Return values: DMIC_OK, DMIC_ERROR_INVALID_CONTEXT.
Top-level DMIC ISR dispatch entry.
Return values: DMIC_OK, DMIC_ERROR_INVALID_CONTEXT, DMIC_ERROR.
Start capture/streaming for an enabled instance.
Return values: DMIC_OK, DMIC_ERROR_INVALID_CONTEXT, DMIC_ERROR_INVALID_CONFIG.
Stop capture and place backend in idle state.
Return values: DMIC_OK, DMIC_ERROR_INVALID_CONTEXT.
Blocking/timeout-based audio data retrieval.
Return values: DMIC_OK, DMIC_ERROR_TIMEOUT, DMIC_ERROR_OVERFLOW, DMIC_ERROR_INVALID_PARAM, DMIC_ERROR_INVALID_CONTEXT, DMIC_ERROR_DMA_FAILED.
Immediate read query without waiting for data readiness.
Return values: DMIC_OK, DMIC_ERROR_INVALID_PARAM, DMIC_ERROR_INVALID_CONTEXT, DMIC_ERROR_DMA_FAILED.
Set channel digital volume in dB (quantized to hardware step).
Return values: DMIC_OK, DMIC_ERROR_INVALID_PARAM, DMIC_ERROR_INVALID_CONTEXT.
Set microphone gain control preset for one channel.
Return values: DMIC_OK, DMIC_ERROR_INVALID_PARAM, DMIC_ERROR_INVALID_CONTEXT, DMIC_ERROR_INVALID_GAIN.
Set per-channel digital boost level.
Return values: DMIC_OK, DMIC_ERROR_INVALID_PARAM, DMIC_ERROR_INVALID_CONTEXT, DMIC_ERROR_INVALID_BOOST.
Register runtime callback for transfer and error notifications.
Return values: DMIC_OK, DMIC_ERROR_INVALID_CONTEXT.
Configure FIFO or DMA data path from a unified configuration structure.
Return values: DMIC_OK, DMIC_ERROR_INVALID_PARAM, DMIC_ERROR_INVALID_CONTEXT, DMIC_ERROR_NOT_SUPPORTED.