1.12.5.19 CMP_CALLBACK Typedef
C
typedef void (*CMP_CALLBACK) (uintptr_t context);
Summary
Defines the function pointer data type and function signature for the CMP callback function.
Description
The library will call back the client's function with this signature, from the interrupt routine.
Precondition
CMP_Initialize must have been called. CMP_x_CallbackRegister must have been called to register the function to be called for a specific comparator.
Parameters
Param | Description |
---|---|
context | Allows the caller to provide a context value (usually a pointer to the callers context for multi-instance clients). |
Returns
None.
Example
uintptr_t cmp1_context = 0; void cmp1_cb(uintptr_t context) CMP_1_CallbackRegister(cmp1_cb, cmp1_context);
Remarks
None.