1.2.27.8 1.3.28.8 1.4.28.8 1.5.28.8 1.9.25.8 1.25.25.6 1.26.22.6 1.27.27.4 1.28.27.4 1.29.28.8 1.30.20.6 1.31.20.6 1.32.31.8 1.33.20.6 1.34.28.4 1.35.19.4 1.36.19.4 1.37.20.6 1.38.27.8 1.39.23.8 1.40.26.8 1.41.23.4 1.42.22.4 WDT_CALLBACK Typedef
The prototype of WDT_CALLBACK varies based on device family. Refer to the generated header file for the actual prototype to be used
C
typedef void (*WDT_CALLBACK)(uintptr_t context); typedef void (*WDT_CALLBACK)(uintptr_t context, uint32_t interruptStatus);
Summary
Defines the data type and function signature for the WDT peripheral callback function.
Description
This data type defines the function signature for the WDT peripheral callback function. The WDT peripheral will call back the client's function with this signature in different ways based on device family - When the Timeout event has occurred
- When A Early Warning Event has occurred. This interrupt indicates to the application that an WDT timeout is about to occur.
This feature may or may not be available based on device.
Precondition
WDT_Initialize must have been called for the given WDT peripheral instance and WDT_CallbackRegister must have been called to set the function to be called.
Parameters
Param | Description |
---|---|
context | Allows the caller to provide a context value (usually a pointer to the callers context for multi-instance clients). |
interruptStatus | WDT interrupt status |
Returns
None.