FuSa 8-Bit Libraries Safety Framework
Loading...
Searching...
No Matches
midware_watchdog_manager.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include <define_error_flags.h>

Go to the source code of this file.

Enumerations

enum  wdtTimeout_t {
  WDT_TIMEOUT_OFF = 0U , WDT_TIMEOUT_CLK8 , WDT_TIMEOUT_CLK16 , WDT_TIMEOUT_CLK32 ,
  WDT_TIMEOUT_CLK64 , WDT_TIMEOUT_CLK128 , WDT_TIMEOUT_CLK256 , WDT_TIMEOUT_CLK512 ,
  WDT_TIMEOUT_CLK1K , WDT_TIMEOUT_CLK2K , WDT_TIMEOUT_CLK4K , WDT_TIMEOUT_CLK8K ,
  WDT_TIMEOUT_MAX
}
 Defines available timeout configurations for the Watchdog Timer. More...

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.