pub struct RTC_CNTL { /* private fields */ }
Expand description
Real-Time Clock Control
Implementations§
source§impl RTC_CNTL
impl RTC_CNTL
sourcepub const PTR: *const RegisterBlock = {0x3ff48000 as *const rtc_cntl::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x3ff48000 as *const rtc_cntl::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 slp_timer0(&self) -> &SLP_TIMER0
pub fn slp_timer0(&self) -> &SLP_TIMER0
0x04 -
sourcepub fn slp_timer1(&self) -> &SLP_TIMER1
pub fn slp_timer1(&self) -> &SLP_TIMER1
0x08 -
sourcepub fn time_update(&self) -> &TIME_UPDATE
pub fn time_update(&self) -> &TIME_UPDATE
0x0c -
sourcepub fn reset_state(&self) -> &RESET_STATE
pub fn reset_state(&self) -> &RESET_STATE
0x34 -
sourcepub fn wakeup_state(&self) -> &WAKEUP_STATE
pub fn wakeup_state(&self) -> &WAKEUP_STATE
0x38 -
sourcepub fn ext_xtl_conf(&self) -> &EXT_XTL_CONF
pub fn ext_xtl_conf(&self) -> &EXT_XTL_CONF
0x5c -
sourcepub fn ext_wakeup_conf(&self) -> &EXT_WAKEUP_CONF
pub fn ext_wakeup_conf(&self) -> &EXT_WAKEUP_CONF
0x60 -
sourcepub fn slp_reject_conf(&self) -> &SLP_REJECT_CONF
pub fn slp_reject_conf(&self) -> &SLP_REJECT_CONF
0x64 -
sourcepub fn cpu_period_conf(&self) -> &CPU_PERIOD_CONF
pub fn cpu_period_conf(&self) -> &CPU_PERIOD_CONF
0x68 -
sourcepub fn sdio_act_conf(&self) -> &SDIO_ACT_CONF
pub fn sdio_act_conf(&self) -> &SDIO_ACT_CONF
0x6c -
sourcepub fn wdtconfig0(&self) -> &WDTCONFIG0
pub fn wdtconfig0(&self) -> &WDTCONFIG0
0x8c -
sourcepub fn wdtconfig1(&self) -> &WDTCONFIG1
pub fn wdtconfig1(&self) -> &WDTCONFIG1
0x90 -
sourcepub fn wdtconfig2(&self) -> &WDTCONFIG2
pub fn wdtconfig2(&self) -> &WDTCONFIG2
0x94 -
sourcepub fn wdtconfig3(&self) -> &WDTCONFIG3
pub fn wdtconfig3(&self) -> &WDTCONFIG3
0x98 -
sourcepub fn wdtconfig4(&self) -> &WDTCONFIG4
pub fn wdtconfig4(&self) -> &WDTCONFIG4
0x9c -
sourcepub fn wdtwprotect(&self) -> &WDTWPROTECT
pub fn wdtwprotect(&self) -> &WDTWPROTECT
0xa4 -
sourcepub fn sw_cpu_stall(&self) -> &SW_CPU_STALL
pub fn sw_cpu_stall(&self) -> &SW_CPU_STALL
0xac -
sourcepub fn low_power_st(&self) -> &LOW_POWER_ST
pub fn low_power_st(&self) -> &LOW_POWER_ST
0xc0 -
sourcepub fn hold_force(&self) -> &HOLD_FORCE
pub fn hold_force(&self) -> &HOLD_FORCE
0xc8 -
sourcepub fn ext_wakeup1(&self) -> &EXT_WAKEUP1
pub fn ext_wakeup1(&self) -> &EXT_WAKEUP1
0xcc -
sourcepub fn ext_wakeup1_status(&self) -> &EXT_WAKEUP1_STATUS
pub fn ext_wakeup1_status(&self) -> &EXT_WAKEUP1_STATUS
0xd0 -
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RTC_CNTL
impl RefUnwindSafe for RTC_CNTL
impl !Sync for RTC_CNTL
impl Unpin for RTC_CNTL
impl UnwindSafe for RTC_CNTL
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