pub struct LP_IO { /* private fields */ }
Expand description
LP_IO Peripheral
Implementations§
Source§impl LP_IO
impl LP_IO
Sourcepub const PTR: *const RegisterBlock = {0x600b2000 as *const lp_io::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x600b2000 as *const lp_io::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 enable_w1ts(&self) -> &ENABLE_W1TS
pub fn enable_w1ts(&self) -> &ENABLE_W1TS
0x10 - need des
Sourcepub fn enable_w1tc(&self) -> &ENABLE_W1TC
pub fn enable_w1tc(&self) -> &ENABLE_W1TC
0x14 - need des
Sourcepub fn status_w1ts(&self) -> &STATUS_W1TS
pub fn status_w1ts(&self) -> &STATUS_W1TS
0x1c - need des
Sourcepub fn status_w1tc(&self) -> &STATUS_W1TC
pub fn status_w1tc(&self) -> &STATUS_W1TC
0x20 - need des
Sourcepub fn pin_iter(&self) -> impl Iterator<Item = &PIN>
pub fn pin_iter(&self) -> impl Iterator<Item = &PIN>
Iterator for array of: 0x28..0x48 - need des
Sourcepub fn gpio_iter(&self) -> impl Iterator<Item = &GPIO>
pub fn gpio_iter(&self) -> impl Iterator<Item = &GPIO>
Iterator for array of: 0x48..0x68 - need des
Sourcepub fn status_int(&self) -> &STATUS_INT
pub fn status_int(&self) -> &STATUS_INT
0x68 - need des