FuSa 8-Bit Libraries Safety Framework
Loading...
Searching...
No Matches
midware_watchdog_manager.h
Go to the documentation of this file.
1
27#ifndef MIDWARE_WATCHDOG_MANAGER_H
28#define MIDWARE_WATCHDOG_MANAGER_H
29
30// Standard Library Includes
31#include <stdbool.h>
32#include <stdint.h>
33
34// Framework Includes
35#include <define_error_flags.h>
36
59
70
72
84
96
107
117void MW_ClearSwdtErrors(void);
118
127void MW_PreClearSwdt(void);
128
138void MW_ClearSwdt(void);
139
153errFlag_t MW_SetSwdtResetValue(uint32_t resetVal);
154
169errFlag_t MW_SetSwdtWindowValue(uint16_t window);
170
176void MW_EnableSwdtInterrupts(void);
177
193void MW_EnableSwdt(bool useCcp, bool useLock, bool useInstrMode);
194
199void MW_ClearWdt(void);
200
226
227#endif // MIDWARE_WATCHDOG_MANAGER_H
Defines error flag type for indicating detected errors in Middleware services.
errFlag_t
Defines the error flag used by Middleware services to indicate error detection.
void MW_PreClearSwdt(void)
Sends a PRECLEAR command to the Synchronous Watchdog.
errFlag_t MW_SetWdtTimeout(wdtTimeout_t window, wdtTimeout_t period)
Configures and enables the Watchdog Timer in either Normal or Window mode.
void MW_ClearSwdt(void)
Sends a CLEAR command to the Synchronous Watchdog.
errFlag_t MW_GetSwdtClearError(void)
Reads the error flag indicating a non-clear command received while expecting a clear command in the S...
void MW_EnableSwdt(bool useCcp, bool useLock, bool useInstrMode)
Enables the Synchronous Watchdog Timer with the provided configurations.
errFlag_t MW_GetSwdtCounterExpiredError(void)
Reads the error flag indicating that the Synchronous Watchdog counter expired.
wdtTimeout_t
Defines available timeout configurations for the Watchdog Timer.
errFlag_t MW_SetSwdtResetValue(uint32_t resetVal)
Sets the Synchronous Watchdog Timer countdown reset value.
void MW_EnableSwdtInterrupts(void)
Enables all Synchronous Watchdog error interrupts.
errFlag_t MW_GetSwdtPreclearError(void)
Reads the error flag indicating a non-preclear command received while expecting a preclear command in...
void MW_ClearWdt(void)
Clears the Watchdog Timer by issuing a Watchdog Reset (WDR) instruction.
errFlag_t MW_SetSwdtWindowValue(uint16_t window)
Sets the Synchronous Watchdog Timer open window value.
void MW_ClearSwdtErrors(void)
Clears all the error flags in the Synchronous Watchdog.
errFlag_t MW_GetSwdtUnexpectedCmdError(void)
Reads the error flag indicating a clear command received in the closed window after a preclear comman...