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 approximately 16 seconds.
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. Additionally, as of RP2350, a debugger warm reset of either core (SYSRESETREQ or hartreset) will also clear the watchdog reason register, so that software loaded under the debugger following a watchdog timeout will not continue to see the timeout condition.
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.
Trait Implementations§
impl Copy for Watchdog
impl Eq for Watchdog
impl Send for Watchdog
impl StructuralPartialEq for Watchdog
impl Sync for Watchdog
Auto Trait Implementations§
impl Freeze for Watchdog
impl RefUnwindSafe for Watchdog
impl Unpin for Watchdog
impl UnwindSafe for Watchdog
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)