1.11.6.17 CMP_5_CallbackRegister Function
C
void CMP_5_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 cmp5_context = 0; void cmp5_cb(uintptr_t context) CMP_5_CallbackRegister(cmp5_cb, cmp5_context);
Remarks
None.