pub struct Watchdog(pub *mut u8);
Tuple Fields§
§0: *mut u8
Implementations§
Source§impl Watchdog
impl Watchdog
Sourcepub fn ctrl(self) -> Reg<Ctrl, RW>
pub fn ctrl(self) -> Reg<Ctrl, RW>
Watchdog control The rst_wdsel register determines which subsystems are reset when the watchdog is triggered. The watchdog can be triggered in software.
Sourcepub fn load(self) -> Reg<Load, RW>
pub fn load(self) -> Reg<Load, RW>
Load the watchdog timer. The maximum setting is 0xffffff which corresponds to 0xffffff / 2 ticks before triggering a watchdog reset (see errata RP2040-E1).
Sourcepub fn reason(self) -> Reg<Reason, RW>
pub fn reason(self) -> Reg<Reason, RW>
Logs the reason for the last reset. Both bits are zero for the case of a hardware reset.
Sourcepub fn scratch0(self) -> Reg<u32, RW>
pub fn scratch0(self) -> Reg<u32, RW>
Scratch register. Information persists through soft reset of the chip.
Sourcepub fn scratch1(self) -> Reg<u32, RW>
pub fn scratch1(self) -> Reg<u32, RW>
Scratch register. Information persists through soft reset of the chip.
Sourcepub fn scratch2(self) -> Reg<u32, RW>
pub fn scratch2(self) -> Reg<u32, RW>
Scratch register. Information persists through soft reset of the chip.
Sourcepub fn scratch3(self) -> Reg<u32, RW>
pub fn scratch3(self) -> Reg<u32, RW>
Scratch register. Information persists through soft reset of the chip.
Sourcepub fn scratch4(self) -> Reg<u32, RW>
pub fn scratch4(self) -> Reg<u32, RW>
Scratch register. Information persists through soft reset of the chip.
Sourcepub fn scratch5(self) -> Reg<u32, RW>
pub fn scratch5(self) -> Reg<u32, RW>
Scratch register. Information persists through soft reset of the chip.
Sourcepub fn scratch6(self) -> Reg<u32, RW>
pub fn scratch6(self) -> Reg<u32, RW>
Scratch register. Information persists through soft reset of the chip.