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 = {0x3f408000 as *const rtc_cntl::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x3f408000 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 options0(&self) -> &OPTIONS0
pub fn options0(&self) -> &OPTIONS0
0x00 - Sets the power options of crystal and PLL clocks, and initiates reset by software
sourcepub fn slp_timer0(&self) -> &SLP_TIMER0
pub fn slp_timer0(&self) -> &SLP_TIMER0
0x04 - RTC timer threshold register 0
sourcepub fn slp_timer1(&self) -> &SLP_TIMER1
pub fn slp_timer1(&self) -> &SLP_TIMER1
0x08 - RTC timer threshold register 1
sourcepub fn time_update(&self) -> &TIME_UPDATE
pub fn time_update(&self) -> &TIME_UPDATE
0x0c - RTC timer update control register
sourcepub fn time_high0(&self) -> &TIME_HIGH0
pub fn time_high0(&self) -> &TIME_HIGH0
0x14 - Stores the higher 16 bits of RTC timer 0
sourcepub fn reset_state(&self) -> &RESET_STATE
pub fn reset_state(&self) -> &RESET_STATE
0x38 - Indicates the CPU reset source. For more information about the reset cause, please refer to Table \ref{table:resetreasons} in Chapter \ref{module:ResetandClock} \textit{ ameref{module:ResetandClock}}.
sourcepub fn wakeup_state(&self) -> &WAKEUP_STATE
pub fn wakeup_state(&self) -> &WAKEUP_STATE
0x3c - Wakeup bitmap enabling register
sourcepub fn ext_xtl_conf(&self) -> &EXT_XTL_CONF
pub fn ext_xtl_conf(&self) -> &EXT_XTL_CONF
0x60 - 32 kHz crystal oscillator configuration register
sourcepub fn ext_wakeup_conf(&self) -> &EXT_WAKEUP_CONF
pub fn ext_wakeup_conf(&self) -> &EXT_WAKEUP_CONF
0x64 - GPIO wakeup configuration register
sourcepub fn slp_reject_conf(&self) -> &SLP_REJECT_CONF
pub fn slp_reject_conf(&self) -> &SLP_REJECT_CONF
0x68 - Configures sleep / reject options
sourcepub fn cpu_period_conf(&self) -> &CPU_PERIOD_CONF
pub fn cpu_period_conf(&self) -> &CPU_PERIOD_CONF
0x6c - CPU sel option
sourcepub fn sdio_act_conf(&self) -> &SDIO_ACT_CONF
pub fn sdio_act_conf(&self) -> &SDIO_ACT_CONF
0x70 - configure sdio active register
sourcepub fn slow_clk_conf(&self) -> &SLOW_CLK_CONF
pub fn slow_clk_conf(&self) -> &SLOW_CLK_CONF
0x78 - RTC slow clock configuration register
sourcepub fn wdtconfig0(&self) -> &WDTCONFIG0
pub fn wdtconfig0(&self) -> &WDTCONFIG0
0x94 - RTC watchdog configuration register
sourcepub fn wdtconfig1(&self) -> &WDTCONFIG1
pub fn wdtconfig1(&self) -> &WDTCONFIG1
0x98 - Configures the hold time of RTC watchdog at level 1
sourcepub fn wdtconfig2(&self) -> &WDTCONFIG2
pub fn wdtconfig2(&self) -> &WDTCONFIG2
0x9c - Configures the hold time of RTC watchdog at level 2
sourcepub fn wdtconfig3(&self) -> &WDTCONFIG3
pub fn wdtconfig3(&self) -> &WDTCONFIG3
0xa0 - Configures the hold time of RTC watchdog at level 3
sourcepub fn wdtconfig4(&self) -> &WDTCONFIG4
pub fn wdtconfig4(&self) -> &WDTCONFIG4
0xa4 - Configures the hold time of RTC watchdog at level 4
sourcepub fn wdtwprotect(&self) -> &WDTWPROTECT
pub fn wdtwprotect(&self) -> &WDTWPROTECT
0xac - RTC watchdog write protection configuration register
sourcepub fn swd_wprotect(&self) -> &SWD_WPROTECT
pub fn swd_wprotect(&self) -> &SWD_WPROTECT
0xb4 - Super watchdog write protection configuration register
sourcepub fn sw_cpu_stall(&self) -> &SW_CPU_STALL
pub fn sw_cpu_stall(&self) -> &SW_CPU_STALL
0xb8 - CPU stall configuration register
sourcepub fn low_power_st(&self) -> &LOW_POWER_ST
pub fn low_power_st(&self) -> &LOW_POWER_ST
0xcc - RTC main state machine status register
sourcepub fn dig_pad_hold(&self) -> &DIG_PAD_HOLD
pub fn dig_pad_hold(&self) -> &DIG_PAD_HOLD
0xd8 - Configures the hold option for digital GPIOs
sourcepub fn ext_wakeup1(&self) -> &EXT_WAKEUP1
pub fn ext_wakeup1(&self) -> &EXT_WAKEUP1
0xdc - EXT1 wakeup configuration register
sourcepub fn ext_wakeup1_status(&self) -> &EXT_WAKEUP1_STATUS
pub fn ext_wakeup1_status(&self) -> &EXT_WAKEUP1_STATUS
0xe0 - EXT1 wakeup source register
sourcepub fn time_high1(&self) -> &TIME_HIGH1
pub fn time_high1(&self) -> &TIME_HIGH1
0xec - Stores the higher 16 bits of RTC timer 1
sourcepub fn xtal32k_clk_factor(&self) -> &XTAL32K_CLK_FACTOR
pub fn xtal32k_clk_factor(&self) -> &XTAL32K_CLK_FACTOR
0xf0 - Configures the divider factor for the backup clock of 32 kHz crystal oscillator
sourcepub fn xtal32k_conf(&self) -> &XTAL32K_CONF
pub fn xtal32k_conf(&self) -> &XTAL32K_CONF
0xf4 - 32 kHz crystal oscillator configuration register
sourcepub fn ulp_cp_timer(&self) -> &ULP_CP_TIMER
pub fn ulp_cp_timer(&self) -> &ULP_CP_TIMER
0xf8 - Configure coprocessor timer
sourcepub fn ulp_cp_ctrl(&self) -> &ULP_CP_CTRL
pub fn ulp_cp_ctrl(&self) -> &ULP_CP_CTRL
0xfc - ULP-FSM configuration register
sourcepub fn cocpu_ctrl(&self) -> &COCPU_CTRL
pub fn cocpu_ctrl(&self) -> &COCPU_CTRL
0x100 - ULP-RISCV configuration register
sourcepub fn touch_ctrl1(&self) -> &TOUCH_CTRL1
pub fn touch_ctrl1(&self) -> &TOUCH_CTRL1
0x104 - Touch control register
sourcepub fn touch_ctrl2(&self) -> &TOUCH_CTRL2
pub fn touch_ctrl2(&self) -> &TOUCH_CTRL2
0x108 - Touch control register
sourcepub fn touch_scan_ctrl(&self) -> &TOUCH_SCAN_CTRL
pub fn touch_scan_ctrl(&self) -> &TOUCH_SCAN_CTRL
0x10c - Configure touch scan settings
sourcepub fn touch_slp_thres(&self) -> &TOUCH_SLP_THRES
pub fn touch_slp_thres(&self) -> &TOUCH_SLP_THRES
0x110 - Configure the settings of touch sleep pad
sourcepub fn touch_approach(&self) -> &TOUCH_APPROACH
pub fn touch_approach(&self) -> &TOUCH_APPROACH
0x114 - Configure touch approach settings
sourcepub fn touch_filter_ctrl(&self) -> &TOUCH_FILTER_CTRL
pub fn touch_filter_ctrl(&self) -> &TOUCH_FILTER_CTRL
0x118 - Configure touch filter settings
sourcepub fn touch_timeout_ctrl(&self) -> &TOUCH_TIMEOUT_CTRL
pub fn touch_timeout_ctrl(&self) -> &TOUCH_TIMEOUT_CTRL
0x120 - Configure touch timeout settings
sourcepub fn slp_reject_cause(&self) -> &SLP_REJECT_CAUSE
pub fn slp_reject_cause(&self) -> &SLP_REJECT_CAUSE
0x124 - Stores the reject-to-sleep cause.
sourcepub fn slp_wakeup_cause(&self) -> &SLP_WAKEUP_CAUSE
pub fn slp_wakeup_cause(&self) -> &SLP_WAKEUP_CAUSE
0x12c - Stores the sleep-to-wakeup cause.
sourcepub fn ulp_cp_timer_1(&self) -> &ULP_CP_TIMER_1
pub fn ulp_cp_timer_1(&self) -> &ULP_CP_TIMER_1
0x130 - Configure sleep cycle of the timer