Sapphire SoC DS Sapphire SoC UG Sapphire HP SoC DS Sapphire HP SoC UG RISC-V Embedded IDE UG Board Support Package
Loading...
Searching...
No Matches
watchdog_instance_t Struct Reference

#include <watchdog.h>

Data Fields

watchdog_hwreg_thwreg
u32 enable [2]
u32 prescaler
 Prescaler value.
u32 counterLimit [2]
u32 heartbeat

Detailed Description

Watchdog instance. Holds the software registers and hardware pointer.

Note
This structure holds configuration values to be applied to the hardware.
  • enable: Enable flags for each counter.
  • prescaler: Clock divider value.
  • counterLimit: Counter limit values for each counter.
  • heartbeat: Heartbeat action value.

Definition at line 133 of file watchdog.h.

Field Documentation

◆ counterLimit

u32 watchdog_instance_t::counterLimit[2]

Counter limit values for each counter

Note
  • CounterLimit[0] for Limit Counter 0
  • CounterLimit[1] for Limit Counter 1

Definition at line 146 of file watchdog.h.

◆ enable

u32 watchdog_instance_t::enable[2]

Enable flags for each counter

Note
  • enable[0] to enable Counter 0
  • enable[1] to enable Counter 1

Definition at line 139 of file watchdog.h.

◆ heartbeat

u32 watchdog_instance_t::heartbeat

Heartbeat action value

Note
Heartbeat Config: WDG_TIMER_CLEAR, WDG_TIMER_UNLOCK , WDG_TIMER_LOCK

Definition at line 151 of file watchdog.h.

◆ hwreg

watchdog_hwreg_t* watchdog_instance_t::hwreg

Pointer to Hardware Register Map

Note
Struct that maps directly onto the Watchdog peripheral memory-mapped register layout.

Definition at line 134 of file watchdog.h.

◆ prescaler

u32 watchdog_instance_t::prescaler

Prescaler value.

Definition at line 144 of file watchdog.h.


The documentation for this struct was generated from the following file:
  • C:/Users/JasonLau/Downloads/workspace_local/GitLab/efx_IP/efx_soc_rv64/embedded_sw/software/standalone/driver/watchdog/watchdog.h