Struct 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 = {0x60008000 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 - RTC common configure register

Source

pub fn slp_timer0(&self) -> &SLP_TIMER0

0x04 - configure min sleep time

Source

pub fn slp_timer1(&self) -> &SLP_TIMER1

0x08 - configure sleep time hi

Source

pub fn time_update(&self) -> &TIME_UPDATE

0x0c - update rtc main timer

Source

pub fn time_low0(&self) -> &TIME_LOW0

0x10 - read rtc_main timer low bits

Source

pub fn time_high0(&self) -> &TIME_HIGH0

0x14 - read rtc_main timer high bits

Source

pub fn state0(&self) -> &STATE0

0x18 - configure chip sleep

Source

pub fn timer1(&self) -> &TIMER1

0x1c - rtc state wait time

Source

pub fn timer2(&self) -> &TIMER2

0x20 - rtc monitor state delay time

Source

pub fn timer3(&self) -> &TIMER3

0x24 - No public

Source

pub fn timer4(&self) -> &TIMER4

0x28 - No public

Source

pub fn timer5(&self) -> &TIMER5

0x2c - configure min sleep time

Source

pub fn timer6(&self) -> &TIMER6

0x30 - No public

Source

pub fn ana_conf(&self) -> &ANA_CONF

0x34 - analog configure register

Source

pub fn reset_state(&self) -> &RESET_STATE

0x38 - get reset state

Source

pub fn wakeup_state(&self) -> &WAKEUP_STATE

0x3c - configure wakeup state

Source

pub fn int_ena(&self) -> &INT_ENA

0x40 - configure rtc interrupt register

Source

pub fn int_raw(&self) -> &INT_RAW

0x44 - rtc interrupt register

Source

pub fn int_st(&self) -> &INT_ST

0x48 - rtc interrupt register

Source

pub fn int_clr(&self) -> &INT_CLR

0x4c - rtc interrupt register

Source

pub fn store0(&self) -> &STORE0

0x50 - Reserved register

Source

pub fn store1(&self) -> &STORE1

0x54 - Reserved register

Source

pub fn store2(&self) -> &STORE2

0x58 - Reserved register

Source

pub fn store3(&self) -> &STORE3

0x5c - Reserved register

Source

pub fn ext_xtl_conf(&self) -> &EXT_XTL_CONF

0x60 - Reserved register

Source

pub fn ext_wakeup_conf(&self) -> &EXT_WAKEUP_CONF

0x64 - ext wakeup configure

Source

pub fn slp_reject_conf(&self) -> &SLP_REJECT_CONF

0x68 - reject sleep register

Source

pub fn cpu_period_conf(&self) -> &CPU_PERIOD_CONF

0x6c - conigure cpu freq

Source

pub fn sdio_act_conf(&self) -> &SDIO_ACT_CONF

0x70 - No public

Source

pub fn clk_conf(&self) -> &CLK_CONF

0x74 - configure clock register

Source

pub fn slow_clk_conf(&self) -> &SLOW_CLK_CONF

0x78 - configure slow clk

Source

pub fn sdio_conf(&self) -> &SDIO_CONF

0x7c - configure flash power

Source

pub fn bias_conf(&self) -> &BIAS_CONF

0x80 - No public

Source

pub fn rtc(&self) -> &RTC

0x84 - configure rtc regulator

Source

pub fn pwc(&self) -> &PWC

0x88 - configure rtc power

Source

pub fn regulator_drv_ctrl(&self) -> &REGULATOR_DRV_CTRL

0x8c - No public

Source

pub fn dig_pwc(&self) -> &DIG_PWC

0x90 - configure digital power

Source

pub fn dig_iso(&self) -> &DIG_ISO

0x94 - congigure digital power isolation

Source

pub fn wdtconfig0(&self) -> &WDTCONFIG0

0x98 - configure rtc watch dog

Source

pub fn wdtconfig1(&self) -> &WDTCONFIG1

0x9c - stage0 hold time

Source

pub fn wdtconfig2(&self) -> &WDTCONFIG2

0xa0 - stage1 hold time

Source

pub fn wdtconfig3(&self) -> &WDTCONFIG3

0xa4 - stage2 hold time

Source

pub fn wdtconfig4(&self) -> &WDTCONFIG4

0xa8 - stage3 hold time

Source

pub fn wdtfeed(&self) -> &WDTFEED

0xac - rtc wdt feed

Source

pub fn wdtwprotect(&self) -> &WDTWPROTECT

0xb0 - configure rtc watch dog

Source

pub fn swd_conf(&self) -> &SWD_CONF

0xb4 - congfigure super watch dog

Source

pub fn swd_wprotect(&self) -> &SWD_WPROTECT

0xb8 - super watch dog key

Source

pub fn sw_cpu_stall(&self) -> &SW_CPU_STALL

0xbc - configure cpu stall by sw

Source

pub fn store4(&self) -> &STORE4

0xc0 - reserved register

Source

pub fn store5(&self) -> &STORE5

0xc4 - reserved register

Source

pub fn store6(&self) -> &STORE6

0xc8 - reserved register

Source

pub fn store7(&self) -> &STORE7

0xcc - reserved register

Source

pub fn low_power_st(&self) -> &LOW_POWER_ST

0xd0 - reserved register

Source

pub fn diag0(&self) -> &DIAG0

0xd4 - No public

Source

pub fn pad_hold(&self) -> &PAD_HOLD

0xd8 - rtc pad hold configure

Source

pub fn dig_pad_hold(&self) -> &DIG_PAD_HOLD

0xdc - configure digtal pad hold

Source

pub fn ext_wakeup1(&self) -> &EXT_WAKEUP1

0xe0 - configure ext1 wakeup

Source

pub fn ext_wakeup1_status(&self) -> &EXT_WAKEUP1_STATUS

0xe4 - check ext wakeup1 status

Source

pub fn brown_out(&self) -> &BROWN_OUT

0xe8 - congfigure brownout

Source

pub fn time_low1(&self) -> &TIME_LOW1

0xec - RTC timer low 32 bits

Source

pub fn time_high1(&self) -> &TIME_HIGH1

0xf0 - RTC timer high 16 bits

Source

pub fn xtal32k_clk_factor(&self) -> &XTAL32K_CLK_FACTOR

0xf4 - xtal 32k watch dog backup clock factor

Source

pub fn xtal32k_conf(&self) -> &XTAL32K_CONF

0xf8 - configure xtal32k

Source

pub fn ulp_cp_timer(&self) -> &ULP_CP_TIMER

0xfc - configure ulp

Source

pub fn ulp_cp_ctrl(&self) -> &ULP_CP_CTRL

0x100 - configure ulp

Source

pub fn cocpu_ctrl(&self) -> &COCPU_CTRL

0x104 - configure ulp-riscv

Source

pub fn touch_ctrl1(&self) -> &TOUCH_CTRL1

0x108 - configure touch controller

Source

pub fn touch_ctrl2(&self) -> &TOUCH_CTRL2

0x10c - configure touch controller

Source

pub fn touch_scan_ctrl(&self) -> &TOUCH_SCAN_CTRL

0x110 - configure touch controller

Source

pub fn touch_slp_thres(&self) -> &TOUCH_SLP_THRES

0x114 - configure touch controller

Source

pub fn touch_approach(&self) -> &TOUCH_APPROACH

0x118 - configure touch controller

Source

pub fn touch_filter_ctrl(&self) -> &TOUCH_FILTER_CTRL

0x11c - configure touch controller

Source

pub fn usb_conf(&self) -> &USB_CONF

0x120 - usb configure

Source

pub fn touch_timeout_ctrl(&self) -> &TOUCH_TIMEOUT_CTRL

0x124 - configure touch controller

Source

pub fn slp_reject_cause(&self) -> &SLP_REJECT_CAUSE

0x128 - get reject casue

Source

pub fn option1(&self) -> &OPTION1

0x12c - rtc common configure

Source

pub fn slp_wakeup_cause(&self) -> &SLP_WAKEUP_CAUSE

0x130 - get wakeup cause

Source

pub fn ulp_cp_timer_1(&self) -> &ULP_CP_TIMER_1

0x134 - configure ulp sleep time

Source

pub fn int_ena_rtc_w1ts(&self) -> &INT_ENA_RTC_W1TS

0x138 - oneset rtc interrupt

Source

pub fn int_ena_rtc_w1tc(&self) -> &INT_ENA_RTC_W1TC

0x13c - oneset clr rtc interrupt enable

Source

pub fn retention_ctrl(&self) -> &RETENTION_CTRL

0x140 - configure retention

Source

pub fn pg_ctrl(&self) -> &PG_CTRL

0x144 - configure power glitch

Source

pub fn fib_sel(&self) -> &FIB_SEL

0x148 - No public

Source

pub fn touch_dac(&self) -> &TOUCH_DAC

0x14c - configure touch dac

Source

pub fn touch_dac1(&self) -> &TOUCH_DAC1

0x150 - configure touch dac

Source

pub fn cocpu_disable(&self) -> &COCPU_DISABLE

0x154 - configure ulp diable

Source

pub fn date(&self) -> &DATE

0x1fc - version register

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

Source§

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

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

Source§

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

Source§

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.