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 out_data_w1ts(&self) -> &OUT_DATA_W1TS
pub fn out_data_w1ts(&self) -> &OUT_DATA_W1TS
0x04 - need des
sourcepub fn out_data_w1tc(&self) -> &OUT_DATA_W1TC
pub fn out_data_w1tc(&self) -> &OUT_DATA_W1TC
0x08 - need des
sourcepub fn out_enable(&self) -> &OUT_ENABLE
pub fn out_enable(&self) -> &OUT_ENABLE
0x0c - need des
sourcepub fn out_enable_w1ts(&self) -> &OUT_ENABLE_W1TS
pub fn out_enable_w1ts(&self) -> &OUT_ENABLE_W1TS
0x10 - need des
sourcepub fn out_enable_w1tc(&self) -> &OUT_ENABLE_W1TC
pub fn out_enable_w1tc(&self) -> &OUT_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 status_interrupt(&self) -> &STATUS_INTERRUPT
pub fn status_interrupt(&self) -> &STATUS_INTERRUPT
0x68 - need des
sourcepub fn debug_sel0(&self) -> &DEBUG_SEL0
pub fn debug_sel0(&self) -> &DEBUG_SEL0
0x6c - need des
sourcepub fn debug_sel1(&self) -> &DEBUG_SEL1
pub fn debug_sel1(&self) -> &DEBUG_SEL1
0x70 - need des
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LP_IO
impl RefUnwindSafe for LP_IO
impl !Sync for LP_IO
impl Unpin for LP_IO
impl UnwindSafe for LP_IO
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
Mutably borrows from an owned value. Read more