1.8.22.42 1.25.23.42 1.26.20.42 1.27.23.42 1.28.25.42 1.34.23.42 1.35.16.42 1.36.18.42 1.41.21.42 1.42.20.42 TC_QUADRATURE_CALLBACK Typedef

C

typedef void (*TC_QUADRATURE_CALLBACK) (TC_QUADRATURE_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_Initialize must have been called for the given TC channel instance and TCx_QuadratureCallbackRegister must have been called to register the function to be called.

Parameters

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

TC0_QuadratureCallbackRegister(TC_CallbackFn, NULL);

Remarks

None.