1.22.5.7 CMP_1_CallbackRegister Function
C
void CMP_1_CallbackRegister(CMP_CALLBACK callback, uintptr_t context);
Summary
Registers the function to be called from interrupt.
Description
This function registers the callback function to be called from interrupt.
Precondition
CMP_Initialize must have been called.
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.