Struct esp32c6_hal::peripherals::ATOMIC
source · pub struct ATOMIC { /* private fields */ }
Implementations§
source§impl ATOMIC
impl ATOMIC
sourcepub unsafe fn steal() -> ATOMIC
pub unsafe fn steal() -> ATOMIC
Unsafely create an instance of this peripheral out of thin air.
Safety
You must ensure that you’re only using one instance of this type at a time.
Methods from Deref<Target = RegisterBlock>§
pub fn addr_lock(&self) -> &Reg<ADDR_LOCK_SPEC>
pub fn addr_lock(&self) -> &Reg<ADDR_LOCK_SPEC>
0x00 - hardware lock regsiter
pub fn lr_addr(&self) -> &Reg<LR_ADDR_SPEC>
pub fn lr_addr(&self) -> &Reg<LR_ADDR_SPEC>
0x04 - gloable lr address regsiter
pub fn lr_value(&self) -> &Reg<LR_VALUE_SPEC>
pub fn lr_value(&self) -> &Reg<LR_VALUE_SPEC>
0x08 - gloable lr value regsiter
pub fn lock_status(&self) -> &Reg<LOCK_STATUS_SPEC>
pub fn lock_status(&self) -> &Reg<LOCK_STATUS_SPEC>
0x0c - lock status regsiter
pub fn counter(&self) -> &Reg<COUNTER_SPEC>
pub fn counter(&self) -> &Reg<COUNTER_SPEC>
0x10 - wait counter register
Trait Implementations§
source§impl Peripheral for ATOMIC
impl Peripheral for ATOMIC
Auto Trait Implementations§
impl RefUnwindSafe for ATOMIC
impl Send for ATOMIC
impl Sync for ATOMIC
impl Unpin for ATOMIC
impl UnwindSafe for ATOMIC
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