1.15.6.14 CMP_2_CallbackRegister Function
C
void CMP_2_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 cmp2_context = 0; void cmp2_cb(uintptr_t context) CMP_2_CallbackRegister(cmp2_cb, cmp2_context);
Remarks
None.