This file contains the prototype of WDT driver APIs.
Go to the source code of this file.
Data Structures | |
struct | Watchdog_HwAttrs |
Watchdog Driver HW configuration. More... | |
struct | Watchdog_Params |
Watchdog Parameters. More... | |
struct | Watchdog_Config |
Watchdog Global configuration. More... | |
struct | Watchdog_MCB |
Watchdog Driver Master Control Block. More... | |
Macros | |
#define | WATCHDOG_CLEAR_STATUS (0xFFU) |
macro to clear the status. More... | |
Typedefs | |
typedef struct Watchdog_Config_s * | Watchdog_Handle |
Watchdog Handle. More... | |
typedef void(* | Watchdog_Callback) (Watchdog_Handle handle, void *callbackFxnArgs) |
Watchdog callback pointer. More... | |
Enumerations | |
enum | Watchdog_DebugMode { Watchdog_DEBUG_STALL_ON = 0, Watchdog_DEBUG_STALL_OFF = 1 } |
Watchdog debug stall settings. More... | |
enum | Watchdog_ResetMode { Watchdog_RESET_OFF = 0xAU, Watchdog_RESET_ON = 0x5U } |
Watchdog reset mode settings. More... | |
enum | Watchdog_WindowSize { Watchdog_WINDOW_100_PERCENT = CSL_RTI_RTIWWDSIZECTRL_WWDSIZE_100_PERCENT, Watchdog_WINDOW_50_PERCENT = CSL_RTI_RTIWWDSIZECTRL_WWDSIZE_50_PERCENT, Watchdog_WINDOW_25_PERCENT = CSL_RTI_RTIWWDSIZECTRL_WWDSIZE_25_PERCENT, Watchdog_WINDOW_12_5_PERCENT = CSL_RTI_RTIWWDSIZECTRL_WWDSIZE_12_5_PERCENT, Watchdog_WINDOW_6_25_PERCENT = CSL_RTI_RTIWWDSIZECTRL_WWDSIZE_6_25_PERCENT, Watchdog_WINDOW_3_125_PERCENT = CSL_RTI_RTIWWDSIZECTRL_WWDSIZE_3_125_PERCENT } |
Watchdog Window Size settings. More... | |
enum | Watchdog_DriverState { Watchdog_DriverState_UNINIT = 0, Watchdog_DriverState_OPERATIONAL = 1 } |
Watchdog Driver Status. More... | |
Functions | |
void | Watchdog_setReaction (Watchdog_Handle handle, uint32_t dwwdReaction) |
Set DWWD reaction. More... | |
uint32_t | Watchdog_getWindowSize (Watchdog_Handle handle) |
Get DWWD Window Size. More... | |
void | Watchdog_setWindowSize (Watchdog_Handle handle, uint32_t dwwdWindowSize) |
Set DWWD Window Size. More... | |
bool | Watchdog_isClosedWindow (Watchdog_Handle handle) |
The function checks for Closed Window. More... | |
void | Watchdog_clear (Watchdog_Handle handle) |
The function clears the Watchdog to prevent a reset signal from being generated if the module is in Watchdog_RESET_ON reset mode. More... | |
void | Watchdog_close (Watchdog_Handle handle) |
The function closes a Watchdog peripheral specified by the Watchdog handle. It stops (holds) the Watchdog counting on applicable platforms. More... | |
void | Watchdog_init (void) |
The functions initializes the Watchdog module. More... | |
void | Watchdog_deinit (void) |
The functions de-initializes the Watchdog module. More... | |
Watchdog_Handle | Watchdog_open (uint8_t index, Watchdog_Params *params) |
Opens a Watchdog object with the index and parameters specified, and returns a Watchdog_Handle. More... | |
void | Watchdog_paramsInit (Watchdog_Params *params) |
Function to set default values of Watchdog_Params in params. More... | |