Struct esp32c6_lp::LP_ANA_PERI
source · pub struct LP_ANA_PERI { /* private fields */ }
Expand description
LP_ANA_PERI Peripheral
Implementations§
source§impl LP_ANA_PERI
impl LP_ANA_PERI
sourcepub const PTR: *const RegisterBlock = {0x600b2c00 as *const lp_ana_peri::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x600b2c00 as *const lp_ana_peri::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 bod_mode0_cntl(&self) -> &BOD_MODE0_CNTL
pub fn bod_mode0_cntl(&self) -> &BOD_MODE0_CNTL
0x00 - need_des
sourcepub fn bod_mode1_cntl(&self) -> &BOD_MODE1_CNTL
pub fn bod_mode1_cntl(&self) -> &BOD_MODE1_CNTL
0x04 - need_des
sourcepub fn ck_glitch_cntl(&self) -> &CK_GLITCH_CNTL
pub fn ck_glitch_cntl(&self) -> &CK_GLITCH_CNTL
0x08 - need_des
sourcepub fn fib_enable(&self) -> &FIB_ENABLE
pub fn fib_enable(&self) -> &FIB_ENABLE
0x0c - need_des
sourcepub fn lp_int_raw(&self) -> &LP_INT_RAW
pub fn lp_int_raw(&self) -> &LP_INT_RAW
0x20 - need_des
sourcepub fn lp_int_ena(&self) -> &LP_INT_ENA
pub fn lp_int_ena(&self) -> &LP_INT_ENA
0x28 - need_des
sourcepub fn lp_int_clr(&self) -> &LP_INT_CLR
pub fn lp_int_clr(&self) -> &LP_INT_CLR
0x2c - need_des
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for LP_ANA_PERI
impl !Sync for LP_ANA_PERI
impl Unpin for LP_ANA_PERI
impl UnwindSafe for LP_ANA_PERI
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