1.12.5.15 CMP_3_CallbackRegister Function

C

void CMP_3_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 cmp3_context = 0;
void cmp3_cb(uintptr_t context)

CMP_3_CallbackRegister(cmp3_cb, cmp3_context);

Remarks

None.