1.2.2.29 ADC_COREnCallbackRegister Function
C
void ADC_COREnCallbackRegister(ADC_CORE_CALLBACK callback, uintptr_t context)
Summary
Registers the ADC core specific callback function
Description
This function registers the callback function which will be called from interrupt
Precondition
ADCx_Initialize() must have been called first for the associated instance.
Parameters
Param | Description |
---|---|
callback | callback function pointer |
context | Allows the caller to provide a context value (usually a pointer to the callers context for multi-instance clients) |
Returns
None.
Example
void ADC_Core0_Callback_Fn(ADC_CORE_INT status, uintptr_t context)
{
}
ADC_COREnCallbackRegister(ADC_Core0_Callback_Fn, NULL);
Remarks
Context value can be set to NULL if not required. To disable callback function, pass NULL for the callback parameter.