1.3.23.60 1.4.24.60 1.5.22.60 1.6.24.60 1.7.25.60 1.8.22.40 1.25.23.40 1.26.20.40 1.27.23.40 1.28.25.40 1.29.26.60 1.30.16.60 1.31.16.60 1.32.29.60 1.33.18.60 1.34.23.40 1.35.16.40 1.36.18.40 1.37.16.60 1.38.24.60 1.39.21.60 1.40.23.60 1.41.21.40 1.42.20.40 TC_COMPARE_CALLBACK Typedef

C

typedef void (*TC_COMPARE_CALLBACK) (TC_COMPARE_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_CompareCallbackRegister must have been called to register the function to be called.

Parameters

Param Description
status Event status in compare 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_COMPARE_STATUS status, uintptr_t context );

TC0_CH1_CompareCallbackRegister(TC_CallbackFn, NULL);

Remarks

None.