pub struct Pwrseq { /* private fields */ }Expand description
Power Sequencer / Low Power Control Register.
Implementations§
Source§impl Pwrseq
impl Pwrseq
Sourcepub const PTR: *const RegisterBlock = {0x40006800 as *const pwrseq::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40006800 as *const pwrseq::RegisterBlock}
Pointer to the register block
Sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Sourcepub unsafe fn steal() -> Self
pub unsafe fn steal() -> Self
Steal an instance of this peripheral
§Safety
Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.
Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.
Methods from Deref<Target = RegisterBlock>§
Sourcepub fn lpwkst0(&self) -> &Lpwkst0
pub fn lpwkst0(&self) -> &Lpwkst0
0x04 - Low Power I/O Wakeup Status Register 0. This register indicates the low power wakeup status for GPIO0.
Sourcepub fn lpwken0(&self) -> &Lpwken0
pub fn lpwken0(&self) -> &Lpwken0
0x08 - Low Power I/O Wakeup Enable Register 0. This register enables low power wakeup functionality for GPIO0.
Sourcepub fn lpwkst1(&self) -> &Lpwkst1
pub fn lpwkst1(&self) -> &Lpwkst1
0x0c - Low Power I/O Wakeup Status Register 1. This register indicates the low power wakeup status for GPIO1.
Sourcepub fn lpwken1(&self) -> &Lpwken1
pub fn lpwken1(&self) -> &Lpwken1
0x10 - Low Power I/O Wakeup Enable Register 1. This register enables low power wakeup functionality for GPIO1.
Sourcepub fn lpwkst2(&self) -> &Lpwkst2
pub fn lpwkst2(&self) -> &Lpwkst2
0x14 - Low Power I/O Wakeup Status Register 2. This register indicates the low power wakeup status for GPIO2.
Sourcepub fn lpwken2(&self) -> &Lpwken2
pub fn lpwken2(&self) -> &Lpwken2
0x18 - Low Power I/O Wakeup Enable Register 2. This register enables low power wakeup functionality for GPIO2.
Sourcepub fn lpwkst3(&self) -> &Lpwkst3
pub fn lpwkst3(&self) -> &Lpwkst3
0x1c - Low Power I/O Wakeup Status Register 3. This register indicates the low power wakeup status for GPIO3.