pub struct RegisterBlock { /* private fields */ }Expand description
Register block
Implementations§
Source§impl RegisterBlock
impl RegisterBlock
Sourcepub const fn ctrl(&self) -> &Reg<CTRL_SPEC>
pub const fn ctrl(&self) -> &Reg<CTRL_SPEC>
0x00 - 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_SPEC>
pub const fn load(&self) -> &Reg<LOAD_SPEC>
0x04 - Load the watchdog timer. The maximum setting is 0xffffff which corresponds to approximately 16 seconds.
Sourcepub const fn reason(&self) -> &Reg<REASON_SPEC>
pub const fn reason(&self) -> &Reg<REASON_SPEC>
0x08 - 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<SCRATCH0_SPEC>
pub const fn scratch0(&self) -> &Reg<SCRATCH0_SPEC>
0x0c - Scratch register. Information persists through soft reset of the chip.
Sourcepub const fn scratch1(&self) -> &Reg<SCRATCH1_SPEC>
pub const fn scratch1(&self) -> &Reg<SCRATCH1_SPEC>
0x10 - Scratch register. Information persists through soft reset of the chip.
Sourcepub const fn scratch2(&self) -> &Reg<SCRATCH2_SPEC>
pub const fn scratch2(&self) -> &Reg<SCRATCH2_SPEC>
0x14 - Scratch register. Information persists through soft reset of the chip.
Sourcepub const fn scratch3(&self) -> &Reg<SCRATCH3_SPEC>
pub const fn scratch3(&self) -> &Reg<SCRATCH3_SPEC>
0x18 - Scratch register. Information persists through soft reset of the chip.
Sourcepub const fn scratch4(&self) -> &Reg<SCRATCH4_SPEC>
pub const fn scratch4(&self) -> &Reg<SCRATCH4_SPEC>
0x1c - Scratch register. Information persists through soft reset of the chip.
Sourcepub const fn scratch5(&self) -> &Reg<SCRATCH5_SPEC>
pub const fn scratch5(&self) -> &Reg<SCRATCH5_SPEC>
0x20 - Scratch register. Information persists through soft reset of the chip.
Sourcepub const fn scratch6(&self) -> &Reg<SCRATCH6_SPEC>
pub const fn scratch6(&self) -> &Reg<SCRATCH6_SPEC>
0x24 - Scratch register. Information persists through soft reset of the chip.
Sourcepub const fn scratch7(&self) -> &Reg<SCRATCH7_SPEC>
pub const fn scratch7(&self) -> &Reg<SCRATCH7_SPEC>
0x28 - Scratch register. Information persists through soft reset of the chip.
Auto Trait Implementations§
impl !Freeze for RegisterBlock
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
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<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more