![]() |
FuSa 8-Bit Libraries Safety Framework
|
Implements APIs for the Watchdog Manager. More...
#include <stdbool.h>#include <stdint.h>#include <define_error_flags.h>#include <driver_swdt.h>#include <driver_wdt.h>#include <midware_watchdog_manager.h>#include <midware_watchdog_manager_asm.h>#include <xc.h>Go to the source code of this file.
Macros | |
| #define | UINT24_MAX 0x00FFFFFFUL |
| Defines max value for 24-bit registers. | |
Functions | |
| errFlag_t | MW_GetSwdtPreclearError (void) |
| Reads the error flag indicating a non-preclear command received while expecting a preclear command in 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 Synchronous Watchdog. | |
| errFlag_t | MW_GetSwdtUnexpectedCmdError (void) |
| Reads the error flag indicating a clear command received in the closed window after a preclear command in the Synchronous Watchdog. | |
| errFlag_t | MW_GetSwdtCounterExpiredError (void) |
| Reads the error flag indicating that the Synchronous Watchdog counter expired. | |
| void | MW_ClearSwdtErrors (void) |
| Clears all the error flags in the Synchronous Watchdog. | |
| void | MW_PreClearSwdt (void) |
| Sends a PRECLEAR command to the Synchronous Watchdog. | |
| void | MW_ClearSwdt (void) |
| Sends a CLEAR command to the Synchronous Watchdog. | |
| errFlag_t | MW_SetSwdtResetValue (uint32_t resetVal) |
| Sets the Synchronous Watchdog Timer countdown reset value. | |
| errFlag_t | MW_SetSwdtWindowValue (uint16_t window) |
| Sets the Synchronous Watchdog Timer open window value. | |
| void | MW_EnableSwdtInterrupts (void) |
| Enables all Synchronous Watchdog error interrupts. | |
| void | MW_EnableSwdt (bool useCcp, bool useLock, bool useInstrMode) |
| Enables the Synchronous Watchdog Timer with the provided configurations. | |
| void | MW_ClearWdt (void) |
| Clears the Watchdog Timer by issuing a Watchdog Reset (WDR) instruction. | |
| errFlag_t | MW_SetWdtTimeout (wdtTimeout_t window, wdtTimeout_t period) |
| Configures and enables the Watchdog Timer in either Normal or Window mode. | |
Implements APIs for the Watchdog Manager.
Definition in file midware_watchdog_manager.c.