1.3.23.58 1.4.24.58 1.5.22.58 1.6.24.58 1.7.25.58 1.8.22.36 1.25.23.36 1.26.20.36 1.27.23.36 1.28.25.36 1.29.26.58 1.30.16.58 1.31.16.58 1.32.29.58 1.33.18.58 1.34.23.36 1.35.16.36 1.36.18.36 1.37.16.58 1.38.24.58 1.39.21.58 1.40.23.58 1.41.21.36 1.42.20.36 TC_TIMER_CALLBACK Typedef

C

typedef void (*TC_TIMER_CALLBACK) (TC_TIMER_STATUS status, uintptr_t context);

Summary

Defines the function pointer data type and function signature for the tc channel callback function.

Description

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

Precondition

TCx_CHy_Initialize must have been called for the given TC channel instance and TCx_CHy_TimerCallbackRegister must have been called to register the function to be called.

Parameters

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

Returns

None.

Example

void TC_CallbackFn (TC_TIMER_STATUS status, uintptr_t context )
{
    //Callback Function body 
}

TC0_CH1_TimerCallbackRegister(TC_CallbackFn, NULL);

Remarks

None.