2.6.4.6.3 Function adc_enable_callback()
Enables callback.
void adc_enable_callback( struct adc_module *const module, enum adc_callback callback_type)
Enables the callback function registered by adc_register_callback. The callback function will be called from the interrupt handler when the conditions for the callback type are met.
| Data direction | Parameter name | Description |
|---|---|---|
|
[in] |
module |
Pointer to ADC software instance struct |
|
[in] |
callback_type |
Callback type given by an enum |
Returns
Status of the operation.
| Return value | Description |
|---|---|
|
STATUS_OK |
If operation was completed |
|
STATUS_ERR_INVALID |
If operation was not completed, due to invalid callback_type |
