2.57.7 ICAPx_CallbackRegister Function
C
/* x = ICAP instance number */
void ICAPx_CallbackRegister(ICAP_CALLBACK callback, uintptr_t context)
Summary
Sets the callback function for a ICAPx interrupt.
Description
This function sets the callback function that will be called when the ICAP conditions are met.
Precondition
ICAPx_Initialize() function must have been called first.
Parameters
| Param | Description |
|---|---|
| callback | Pointer to the function to be called when value is reached. Use NULL to unregister the compare callback |
| context | Pointer to user defined data to be used when the callback function is called. NULL can be passed if no data needed |
Returns
None.
Example
void APP_ICAPTransferHandler(uintptr_t context)
{
}
ICAP1_CallbackRegister(&APP_ICAPTransferHandler, (uintptr_t)NULL);
Remarks
None
