Struct esp32::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 = {0x3ff48000 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 -

source

pub fn slp_timer0(&self) -> &SLP_TIMER0

0x04 -

source

pub fn slp_timer1(&self) -> &SLP_TIMER1

0x08 -

source

pub fn time_update(&self) -> &TIME_UPDATE

0x0c -

source

pub fn time0(&self) -> &TIME0

0x10 -

source

pub fn time1(&self) -> &TIME1

0x14 -

source

pub fn state0(&self) -> &STATE0

0x18 -

source

pub fn timer1(&self) -> &TIMER1

0x1c -

source

pub fn timer2(&self) -> &TIMER2

0x20 -

source

pub fn timer3(&self) -> &TIMER3

0x24 -

source

pub fn timer4(&self) -> &TIMER4

0x28 -

source

pub fn timer5(&self) -> &TIMER5

0x2c -

source

pub fn ana_conf(&self) -> &ANA_CONF

0x30 -

source

pub fn reset_state(&self) -> &RESET_STATE

0x34 -

source

pub fn wakeup_state(&self) -> &WAKEUP_STATE

0x38 -

source

pub fn int_ena(&self) -> &INT_ENA

0x3c -

source

pub fn int_raw(&self) -> &INT_RAW

0x40 -

source

pub fn int_st(&self) -> &INT_ST

0x44 -

source

pub fn int_clr(&self) -> &INT_CLR

0x48 -

source

pub fn store0(&self) -> &STORE0

0x4c -

source

pub fn store1(&self) -> &STORE1

0x50 -

source

pub fn store2(&self) -> &STORE2

0x54 -

source

pub fn store3(&self) -> &STORE3

0x58 -

source

pub fn ext_xtl_conf(&self) -> &EXT_XTL_CONF

0x5c -

source

pub fn ext_wakeup_conf(&self) -> &EXT_WAKEUP_CONF

0x60 -

source

pub fn slp_reject_conf(&self) -> &SLP_REJECT_CONF

0x64 -

source

pub fn cpu_period_conf(&self) -> &CPU_PERIOD_CONF

0x68 -

source

pub fn sdio_act_conf(&self) -> &SDIO_ACT_CONF

0x6c -

source

pub fn clk_conf(&self) -> &CLK_CONF

0x70 -

source

pub fn sdio_conf(&self) -> &SDIO_CONF

0x74 -

source

pub fn bias_conf(&self) -> &BIAS_CONF

0x78 -

source

pub fn reg(&self) -> &REG

0x7c -

source

pub fn pwc(&self) -> &PWC

0x80 -

source

pub fn dig_pwc(&self) -> &DIG_PWC

0x84 -

source

pub fn dig_iso(&self) -> &DIG_ISO

0x88 -

source

pub fn wdtconfig0(&self) -> &WDTCONFIG0

0x8c -

source

pub fn wdtconfig1(&self) -> &WDTCONFIG1

0x90 -

source

pub fn wdtconfig2(&self) -> &WDTCONFIG2

0x94 -

source

pub fn wdtconfig3(&self) -> &WDTCONFIG3

0x98 -

source

pub fn wdtconfig4(&self) -> &WDTCONFIG4

0x9c -

source

pub fn wdtfeed(&self) -> &WDTFEED

0xa0 -

source

pub fn wdtwprotect(&self) -> &WDTWPROTECT

0xa4 -

source

pub fn test_mux(&self) -> &TEST_MUX

0xa8 -

source

pub fn sw_cpu_stall(&self) -> &SW_CPU_STALL

0xac -

source

pub fn store4(&self) -> &STORE4

0xb0 -

source

pub fn store5(&self) -> &STORE5

0xb4 -

source

pub fn store6(&self) -> &STORE6

0xb8 -

source

pub fn store7(&self) -> &STORE7

0xbc -

source

pub fn low_power_st(&self) -> &LOW_POWER_ST

0xc0 -

source

pub fn diag1(&self) -> &DIAG1

0xc4 -

source

pub fn hold_force(&self) -> &HOLD_FORCE

0xc8 -

source

pub fn ext_wakeup1(&self) -> &EXT_WAKEUP1

0xcc -

source

pub fn ext_wakeup1_status(&self) -> &EXT_WAKEUP1_STATUS

0xd0 -

source

pub fn brown_out(&self) -> &BROWN_OUT

0xd4 -

source

pub fn date(&self) -> &DATE

0x13c -

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.