Function adc_register_callback()

Registers a callback.

void adc_register_callback(
		struct adc_module *const module,
		adc_callback_t callback_func,
		enum adc_callback callback_type)

Registers a callback function which is implemented by the user.

Note: The callback must be enabled for the interrupt handler to call it when the condition for the callback is met.
Table 1. Parameters
Data direction Parameter name Description



Pointer to ADC software instance struct



Pointer to callback function



Callback type given by an enum