5.2.4.5 adc_dma_register_callback
Register ADC callback.
int32_t adc_dma_register_callback(
struct adc_dma_descriptor *const descr,
const enum adc_dma_callback_type type,
adc_dma_cb_t cb
)
Parameters
- io_descr
-
An ADC descriptor
- type
-
Type: const enum adc_dma_callback_type Enum
Callback type
- cb
-
Type: adc_dma_cb_t typedef
A callback function, passing NULL de-registers callback
Returns
Type: int32_t
The status of the callback assignment.
- -1
-
Passed parameters were invalid or the ADC is not initialized
- 0
-
A callback is registered successfully