7.1.4.5 audio_dma_register_callback
Register Audio callback function.
int32_t audio_dma_register_callback(
struct audio_dma_descriptor *const desc,
audio_buffer_cb cb
)
This function allows the application to register a function for the driver to call back when queued buffer transfer has finished, or error happens.
Parameters
- desc
-
Type: struct audio_dma_descriptor Struct *const
Pointer to the audio driver descriptor
- cb
-
Type: audio_buffer_cb typedef
Callback function, passing NULL will de-register any registered callback function
Returns
Type: int32_t
The status of callback assignment.