Struct esp32s2::RTC_CNTL

source ·
pub struct RTC_CNTL { /* private fields */ }
Expand description

Real-Time Clock Control

Implementations§

source§

impl RTC_CNTL

source

pub const PTR: *const RegisterBlock = {0x3f408000 as *const rtc_cntl::RegisterBlock}

Pointer to the register block

source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

source

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>§

source

pub fn options0(&self) -> &OPTIONS0

0x00 - Sets the power options of crystal and PLL clocks, and initiates reset by software

source

pub fn slp_timer0(&self) -> &SLP_TIMER0

0x04 - RTC timer threshold register 0

source

pub fn slp_timer1(&self) -> &SLP_TIMER1

0x08 - RTC timer threshold register 1

source

pub fn time_update(&self) -> &TIME_UPDATE

0x0c - RTC timer update control register

source

pub fn time_low0(&self) -> &TIME_LOW0

0x10 - Stores the lower 32 bits of RTC timer 0.

source

pub fn time_high0(&self) -> &TIME_HIGH0

0x14 - Stores the higher 16 bits of RTC timer 0

source

pub fn state0(&self) -> &STATE0

0x18 - Configures the sleep / reject / wakeup state

source

pub fn timer1(&self) -> &TIMER1

0x1c - Configures CPU stall options

source

pub fn timer2(&self) -> &TIMER2

0x20 - Configures RTC slow clock and touch controller

source

pub fn timer3(&self) -> &TIMER3

0x24 - configure some wait time for power on

source

pub fn timer4(&self) -> &TIMER4

0x28 - configure some wait time for power on

source

pub fn timer5(&self) -> &TIMER5

0x2c - Configures the minimal sleep cycles

source

pub fn timer6(&self) -> &TIMER6

0x30 - Configure minimal sleep cycles register

source

pub fn ana_conf(&self) -> &ANA_CONF

0x34 - Configures the power options for I2C and PLLA

source

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}}.

source

pub fn wakeup_state(&self) -> &WAKEUP_STATE

0x3c - Wakeup bitmap enabling register

source

pub fn int_ena(&self) -> &INT_ENA

0x40 - RTC interrupt enabling register

source

pub fn int_raw(&self) -> &INT_RAW

0x44 - RTC interrupt raw register

source

pub fn int_st(&self) -> &INT_ST

0x48 - RTC interrupt state register

source

pub fn int_clr(&self) -> &INT_CLR

0x4c - RTC interrupt clear register

source

pub fn store0(&self) -> &STORE0

0x50 - Reservation register 0

source

pub fn store1(&self) -> &STORE1

0x54 - Reservation register 1

source

pub fn store2(&self) -> &STORE2

0x58 - Reservation register 2

source

pub fn store3(&self) -> &STORE3

0x5c - Reservation register 3

source

pub fn ext_xtl_conf(&self) -> &EXT_XTL_CONF

0x60 - 32 kHz crystal oscillator configuration register

source

pub fn ext_wakeup_conf(&self) -> &EXT_WAKEUP_CONF

0x64 - GPIO wakeup configuration register

source

pub fn slp_reject_conf(&self) -> &SLP_REJECT_CONF

0x68 - Configures sleep / reject options

source

pub fn cpu_period_conf(&self) -> &CPU_PERIOD_CONF

0x6c - CPU sel option

source

pub fn sdio_act_conf(&self) -> &SDIO_ACT_CONF

0x70 - configure sdio active register

source

pub fn clk_conf(&self) -> &CLK_CONF

0x74 - RTC clock configuration register

source

pub fn slow_clk_conf(&self) -> &SLOW_CLK_CONF

0x78 - RTC slow clock configuration register

source

pub fn sdio_conf(&self) -> &SDIO_CONF

0x7c - configure vddsdio register

source

pub fn bias_conf(&self) -> &BIAS_CONF

0x80 - configure power register

source

pub fn reg(&self) -> &REG

0x84 - RTC/DIG regulator configuration register

source

pub fn pwc(&self) -> &PWC

0x88 - RTC power configuraiton register

source

pub fn dig_pwc(&self) -> &DIG_PWC

0x8c - Digital system power configuraiton register

source

pub fn dig_iso(&self) -> &DIG_ISO

0x90 - Digital system ISO configuration register

source

pub fn wdtconfig0(&self) -> &WDTCONFIG0

0x94 - RTC watchdog configuration register

source

pub fn wdtconfig1(&self) -> &WDTCONFIG1

0x98 - Configures the hold time of RTC watchdog at level 1

source

pub fn wdtconfig2(&self) -> &WDTCONFIG2

0x9c - Configures the hold time of RTC watchdog at level 2

source

pub fn wdtconfig3(&self) -> &WDTCONFIG3

0xa0 - Configures the hold time of RTC watchdog at level 3

source

pub fn wdtconfig4(&self) -> &WDTCONFIG4

0xa4 - Configures the hold time of RTC watchdog at level 4

source

pub fn wdtfeed(&self) -> &WDTFEED

0xa8 - RTC watchdog SW feed configuration register

source

pub fn wdtwprotect(&self) -> &WDTWPROTECT

0xac - RTC watchdog write protection configuration register

source

pub fn swd_conf(&self) -> &SWD_CONF

0xb0 - Super watchdog configuration register

source

pub fn swd_wprotect(&self) -> &SWD_WPROTECT

0xb4 - Super watchdog write protection configuration register

source

pub fn sw_cpu_stall(&self) -> &SW_CPU_STALL

0xb8 - CPU stall configuration register

source

pub fn store4(&self) -> &STORE4

0xbc - Reservation register 4

source

pub fn store5(&self) -> &STORE5

0xc0 - Reservation register 5

source

pub fn store6(&self) -> &STORE6

0xc4 - Reservation register 6

source

pub fn store7(&self) -> &STORE7

0xc8 - Reservation register 7

source

pub fn low_power_st(&self) -> &LOW_POWER_ST

0xcc - RTC main state machine status register

source

pub fn diag0(&self) -> &DIAG0

0xd0 - debug register

source

pub fn pad_hold(&self) -> &PAD_HOLD

0xd4 - Configures the hold options for RTC GPIOs

source

pub fn dig_pad_hold(&self) -> &DIG_PAD_HOLD

0xd8 - Configures the hold option for digital GPIOs

source

pub fn ext_wakeup1(&self) -> &EXT_WAKEUP1

0xdc - EXT1 wakeup configuration register

source

pub fn ext_wakeup1_status(&self) -> &EXT_WAKEUP1_STATUS

0xe0 - EXT1 wakeup source register

source

pub fn brown_out(&self) -> &BROWN_OUT

0xe4 - Brownout configuration register

source

pub fn time_low1(&self) -> &TIME_LOW1

0xe8 - Stores the lower 32 bits of RTC timer 1

source

pub fn time_high1(&self) -> &TIME_HIGH1

0xec - Stores the higher 16 bits of RTC timer 1

source

pub fn xtal32k_clk_factor(&self) -> &XTAL32K_CLK_FACTOR

0xf0 - Configures the divider factor for the backup clock of 32 kHz crystal oscillator

source

pub fn xtal32k_conf(&self) -> &XTAL32K_CONF

0xf4 - 32 kHz crystal oscillator configuration register

source

pub fn ulp_cp_timer(&self) -> &ULP_CP_TIMER

0xf8 - Configure coprocessor timer

source

pub fn ulp_cp_ctrl(&self) -> &ULP_CP_CTRL

0xfc - ULP-FSM configuration register

source

pub fn cocpu_ctrl(&self) -> &COCPU_CTRL

0x100 - ULP-RISCV configuration register

source

pub fn touch_ctrl1(&self) -> &TOUCH_CTRL1

0x104 - Touch control register

source

pub fn touch_ctrl2(&self) -> &TOUCH_CTRL2

0x108 - Touch control register

source

pub fn touch_scan_ctrl(&self) -> &TOUCH_SCAN_CTRL

0x10c - Configure touch scan settings

source

pub fn touch_slp_thres(&self) -> &TOUCH_SLP_THRES

0x110 - Configure the settings of touch sleep pad

source

pub fn touch_approach(&self) -> &TOUCH_APPROACH

0x114 - Configure touch approach settings

source

pub fn touch_filter_ctrl(&self) -> &TOUCH_FILTER_CTRL

0x118 - Configure touch filter settings

source

pub fn usb_conf(&self) -> &USB_CONF

0x11c - configure usb control register

source

pub fn touch_timeout_ctrl(&self) -> &TOUCH_TIMEOUT_CTRL

0x120 - Configure touch timeout settings

source

pub fn slp_reject_cause(&self) -> &SLP_REJECT_CAUSE

0x124 - Stores the reject-to-sleep cause.

source

pub fn options1(&self) -> &OPTIONS1

0x128 - RTC option register

source

pub fn slp_wakeup_cause(&self) -> &SLP_WAKEUP_CAUSE

0x12c - Stores the sleep-to-wakeup cause.

source

pub fn ulp_cp_timer_1(&self) -> &ULP_CP_TIMER_1

0x130 - Configure sleep cycle of the timer

source

pub fn date(&self) -> &DATE

0x138 -

Trait Implementations§

source§

impl Debug for RTC_CNTL

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for RTC_CNTL

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl Send for RTC_CNTL

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.