1.7.26.78 TCC_CALLBACK Typedef

C

typedef void (*TCC_CALLBACK)( uint32_t status, uintptr_t context );

Summary

Defines the function pointer data type and function signature for the tcc callback function.

Description

This data type defines the function pointer and function signature for the tcc callback function. The library will call back the client's function with this signature from the interrupt routine.

Precondition

TCCx_Initialize must have been called for the given TCC channel instance and TCCx_CallbackRegister must have been called to register the function to be called.

Parameters

Param Description
status interrupt status
context Allows the caller to provide a context value (usually a pointer to the callers context for multi-instance clients)

Returns

None.

Example

void TCC_Callback_Fn ( uint32_t status, uintptr_t context );

TCC0_TimerCallbackRegister(TCC_Callback_Fn, NULL);

Remarks

None