pub struct Watchdog { /* private fields */ }
Implementations§
Source§impl Watchdog
impl Watchdog
pub const unsafe fn from_ptr(ptr: *mut ()) -> Self
pub const fn as_ptr(&self) -> *mut ()
Sourcepub const fn ctrl(self) -> Reg<Ctrl, RW>
pub const 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 const fn load(self) -> Reg<Load, RW>
pub const 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 const fn reason(self) -> Reg<Reason, RW>
pub const 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 const fn scratch0(self) -> Reg<u32, RW>
pub const fn scratch0(self) -> Reg<u32, RW>
Scratch register. Information persists through soft reset of the chip.
Sourcepub const fn scratch1(self) -> Reg<u32, RW>
pub const fn scratch1(self) -> Reg<u32, RW>
Scratch register. Information persists through soft reset of the chip.
Sourcepub const fn scratch2(self) -> Reg<u32, RW>
pub const fn scratch2(self) -> Reg<u32, RW>
Scratch register. Information persists through soft reset of the chip.
Sourcepub const fn scratch3(self) -> Reg<u32, RW>
pub const fn scratch3(self) -> Reg<u32, RW>
Scratch register. Information persists through soft reset of the chip.
Sourcepub const fn scratch4(self) -> Reg<u32, RW>
pub const fn scratch4(self) -> Reg<u32, RW>
Scratch register. Information persists through soft reset of the chip.
Sourcepub const fn scratch5(self) -> Reg<u32, RW>
pub const fn scratch5(self) -> Reg<u32, RW>
Scratch register. Information persists through soft reset of the chip.
Sourcepub const fn scratch6(self) -> Reg<u32, RW>
pub const fn scratch6(self) -> Reg<u32, RW>
Scratch register. Information persists through soft reset of the chip.