2.3.71 ADCx_ComparatorCallbackRegister Function
C
void ADCx_ComparatorCallbackRegister(ADCx_CHANNEL channel,ADC_CMP_CALLBACK callback,uintptr_t context); // x is instance of the peripheral and it is applicable only for devices having multiple instances of the peripheral.
Summary
Define custom callback for ADCx Comparator event.
Description
This function can be used to define custom callback for ADCx Comparator event.
Precondition
None.
Parameters
| Param | Description |
|---|---|
| channel | Selected channel |
| callback | Address of the comparator callback function |
| context | A value (usually a pointer) passed (unused) into the function identified by the callback parameter |
Returns
None.
Example
ADC1_Initialize(); ADC1_ComparatorCallbackRegister(ADC1_CHANNEL channel,ADC_CMP_CALLBACK callback,uintptr_t context);
Remarks
None.
