1.3.23.62 1.4.24.62 1.5.22.62 1.6.24.62 1.7.25.62 1.8.22.38 1.25.23.38 1.26.20.38 1.27.23.38 1.28.25.38 1.29.26.62 1.30.16.62 1.31.16.62 1.32.29.62 1.33.18.62 1.34.23.38 1.35.16.38 1.36.18.38 1.37.16.62 1.38.24.62 1.39.21.62 1.40.23.62 1.41.21.38 1.42.20.38 TC_CAPTURE_CALLBACK Typedef
C
typedef void (*TC_CAPTURE_CALLBACK) (TC_CAPTURE_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_CaptureCallbackRegister must have been called to register the function to be called.
Parameters
Param | Description |
---|---|
status | Event status in capture mode |
context | Allows the caller to provide a context value (usually a pointerto the callers context for multi-instance clients). |
Returns
None.
Example
void TC_CallbackFn (TC_CAPTURE_STATUS status, uintptr_t context ); TC0_CH1_CaptureCallbackRegister(TC_CallbackFn, NULL);
Remarks
None.