Struct mcxn947_pac::RTC_SUBSYSTEM0
source · pub struct RTC_SUBSYSTEM0 { /* private fields */ }
Expand description
RTC_SUBSYSTEM
Implementations§
source§impl RTC_SUBSYSTEM0
impl RTC_SUBSYSTEM0
sourcepub const PTR: *const RegisterBlock = {0x4004c000 as *const rtc_subsystem0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x4004c000 as *const rtc_subsystem0::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 subsecond_ctrl(&self) -> &SUBSECOND_CTRL
pub fn subsecond_ctrl(&self) -> &SUBSECOND_CTRL
0x800 - Subsecond Control
sourcepub fn subsecond_cnt(&self) -> &SUBSECOND_CNT
pub fn subsecond_cnt(&self) -> &SUBSECOND_CNT
0x804 - Subsecond Counter
sourcepub fn wake_timer_ctrl(&self) -> &WAKE_TIMER_CTRL
pub fn wake_timer_ctrl(&self) -> &WAKE_TIMER_CTRL
0xc00 - Wake Timer Control
sourcepub fn wake_timer_cnt(&self) -> &WAKE_TIMER_CNT
pub fn wake_timer_cnt(&self) -> &WAKE_TIMER_CNT
0xc0c - Wake Timer Counter
Trait Implementations§
source§impl Debug for RTC_SUBSYSTEM0
impl Debug for RTC_SUBSYSTEM0
source§impl Deref for RTC_SUBSYSTEM0
impl Deref for RTC_SUBSYSTEM0
impl Send for RTC_SUBSYSTEM0
Auto Trait Implementations§
impl RefUnwindSafe for RTC_SUBSYSTEM0
impl !Sync for RTC_SUBSYSTEM0
impl Unpin for RTC_SUBSYSTEM0
impl UnwindSafe for RTC_SUBSYSTEM0
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