3.3.14.1 TCx_CallbackRegister

Registers the function to be called from interrupt.

This function registers the callback function to be called from interrupt.

void 
TCx_TimerCallbackRegister
(
    TC_CALLBACK callback, 
    uintptr_t context
);

Precondition

  • TCx_TimerInitialize() must have been called first.

Parameters

  • callback - callback function pointer
  • context - Allows the caller to provide a context value (usually a pointer to the callers context for multi-instance clients)

Returns

  • void