1.14.6.16 CMP_4_CallbackRegister Function
C
void CMP_4_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 cmp4_context = 0; void cmp4_cb(uintptr_t context) CMP_4_CallbackRegister(cmp4_cb, cmp4_context);
Remarks
None.