1.1.5.8 HTM_TMR_CALLBACK Typedef
C
typedef void (*HTM_TMR_CALLBACK)(uintptr_t context);
Summary
Defines the data type and function signature for the HTM timer peripheral callback function.
Description
This data type defines the function signature for the HTM timer peripheral callback function. The HTM timer peripheral will call back the client's function with this signature when the HTM timer expires.
Precondition
HTMx_Initialize() function must have been called first.
Parameters
Param | Description |
---|---|
context | A value (usually a pointer) which is passed (unused) into the function identified by the callback parameter |
Returns
None
Example
void htm_timeout_callback(uintptr_t context) { /* Handle HTM timer timeout */ /* Restart the HTM timer */ HTM0_PeriodSet(32768); } HTM0_CallbackRegister(htm_timeout_callback, 0);
Remarks
None