1.10.5.19 1.11.6.19 1.12.5.19 1.13.5.19 1.14.6.19 1.15.6.19 1.16.3.10 1.17.3.10 1.18.4.10 1.19.3.10 1.20.3.10 1.21.4.10 1.22.5.10 1.23.5.10 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.