Register ADC callback.
int32_t adc_async_register_callback( struct adc_async_descriptor *const descr, const uint8_t channel, const enum adc_async_callback_type type, adc_async_cb_t cb )
An adc descriptor
Type: const uint8_t
Channel number
Type: const enum adc_async_callback_type Enum
Callback type
Type: adc_async_cb_t typedef
A callback function, passing NULL de-registers callback
Type: int32_t
The status of callback assignment.
Passed parameters were invalid or the ADC is not initialized
A callback is registered successfully