Struct RegisterBlock

Source
#[repr(C)]
pub struct RegisterBlock { /* private fields */ }
Expand description

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn options0(&self) -> &OPTIONS0

0x00 - RTC common configure register

Source

pub const fn slp_timer0(&self) -> &SLP_TIMER0

0x04 - configure min sleep time

Source

pub const fn slp_timer1(&self) -> &SLP_TIMER1

0x08 - configure sleep time hi

Source

pub const fn time_update(&self) -> &TIME_UPDATE

0x0c - update rtc main timer

Source

pub const fn time_low0(&self) -> &TIME_LOW0

0x10 - read rtc_main timer low bits

Source

pub const fn time_high0(&self) -> &TIME_HIGH0

0x14 - read rtc_main timer high bits

Source

pub const fn state0(&self) -> &STATE0

0x18 - configure chip sleep

Source

pub const fn timer1(&self) -> &TIMER1

0x1c - rtc state wait time

Source

pub const fn timer2(&self) -> &TIMER2

0x20 - rtc monitor state delay time

Source

pub const fn timer3(&self) -> &TIMER3

0x24 - No public

Source

pub const fn timer4(&self) -> &TIMER4

0x28 - No public

Source

pub const fn timer5(&self) -> &TIMER5

0x2c - configure min sleep time

Source

pub const fn timer6(&self) -> &TIMER6

0x30 - No public

Source

pub const fn ana_conf(&self) -> &ANA_CONF

0x34 - analog configure register

Source

pub const fn reset_state(&self) -> &RESET_STATE

0x38 - get reset state

Source

pub const fn wakeup_state(&self) -> &WAKEUP_STATE

0x3c - configure wakeup state

Source

pub const fn int_ena(&self) -> &INT_ENA

0x40 - configure rtc interrupt register

Source

pub const fn int_raw(&self) -> &INT_RAW

0x44 - rtc interrupt register

Source

pub const fn int_st(&self) -> &INT_ST

0x48 - rtc interrupt register

Source

pub const fn int_clr(&self) -> &INT_CLR

0x4c - rtc interrupt register

Source

pub const fn store0(&self) -> &STORE0

0x50 - Reserved register

Source

pub const fn store1(&self) -> &STORE1

0x54 - Reserved register

Source

pub const fn store2(&self) -> &STORE2

0x58 - Reserved register

Source

pub const fn store3(&self) -> &STORE3

0x5c - Reserved register

Source

pub const fn ext_xtl_conf(&self) -> &EXT_XTL_CONF

0x60 - Reserved register

Source

pub const fn ext_wakeup_conf(&self) -> &EXT_WAKEUP_CONF

0x64 - ext wakeup configure

Source

pub const fn slp_reject_conf(&self) -> &SLP_REJECT_CONF

0x68 - reject sleep register

Source

pub const fn cpu_period_conf(&self) -> &CPU_PERIOD_CONF

0x6c - conigure cpu freq

Source

pub const fn sdio_act_conf(&self) -> &SDIO_ACT_CONF

0x70 - No public

Source

pub const fn clk_conf(&self) -> &CLK_CONF

0x74 - configure clock register

Source

pub const fn slow_clk_conf(&self) -> &SLOW_CLK_CONF

0x78 - configure slow clk

Source

pub const fn sdio_conf(&self) -> &SDIO_CONF

0x7c - configure flash power

Source

pub const fn bias_conf(&self) -> &BIAS_CONF

0x80 - No public

Source

pub const fn rtc(&self) -> &RTC

0x84 - configure rtc regulator

Source

pub const fn pwc(&self) -> &PWC

0x88 - configure rtc power

Source

pub const fn regulator_drv_ctrl(&self) -> &REGULATOR_DRV_CTRL

0x8c - No public

Source

pub const fn dig_pwc(&self) -> &DIG_PWC

0x90 - configure digital power

Source

pub const fn dig_iso(&self) -> &DIG_ISO

0x94 - congigure digital power isolation

Source

pub const fn wdtconfig0(&self) -> &WDTCONFIG0

0x98 - configure rtc watch dog

Source

pub const fn wdtconfig1(&self) -> &WDTCONFIG1

0x9c - stage0 hold time

Source

pub const fn wdtconfig2(&self) -> &WDTCONFIG2

0xa0 - stage1 hold time

Source

pub const fn wdtconfig3(&self) -> &WDTCONFIG3

0xa4 - stage2 hold time

Source

pub const fn wdtconfig4(&self) -> &WDTCONFIG4

0xa8 - stage3 hold time

Source

pub const fn wdtfeed(&self) -> &WDTFEED

0xac - rtc wdt feed

Source

pub const fn wdtwprotect(&self) -> &WDTWPROTECT

0xb0 - configure rtc watch dog

Source

pub const fn swd_conf(&self) -> &SWD_CONF

0xb4 - congfigure super watch dog

Source

pub const fn swd_wprotect(&self) -> &SWD_WPROTECT

0xb8 - super watch dog key

Source

pub const fn sw_cpu_stall(&self) -> &SW_CPU_STALL

0xbc - configure cpu stall by sw

Source

pub const fn store4(&self) -> &STORE4

0xc0 - reserved register

Source

pub const fn store5(&self) -> &STORE5

0xc4 - reserved register

Source

pub const fn store6(&self) -> &STORE6

0xc8 - reserved register

Source

pub const fn store7(&self) -> &STORE7

0xcc - reserved register

Source

pub const fn low_power_st(&self) -> &LOW_POWER_ST

0xd0 - reserved register

Source

pub const fn diag0(&self) -> &DIAG0

0xd4 - No public

Source

pub const fn pad_hold(&self) -> &PAD_HOLD

0xd8 - rtc pad hold configure

Source

pub const fn dig_pad_hold(&self) -> &DIG_PAD_HOLD

0xdc - configure digtal pad hold

Source

pub const fn ext_wakeup1(&self) -> &EXT_WAKEUP1

0xe0 - configure ext1 wakeup

Source

pub const fn ext_wakeup1_status(&self) -> &EXT_WAKEUP1_STATUS

0xe4 - check ext wakeup1 status

Source

pub const fn brown_out(&self) -> &BROWN_OUT

0xe8 - congfigure brownout

Source

pub const fn time_low1(&self) -> &TIME_LOW1

0xec - RTC timer low 32 bits

Source

pub const fn time_high1(&self) -> &TIME_HIGH1

0xf0 - RTC timer high 16 bits

Source

pub const fn xtal32k_clk_factor(&self) -> &XTAL32K_CLK_FACTOR

0xf4 - xtal 32k watch dog backup clock factor

Source

pub const fn xtal32k_conf(&self) -> &XTAL32K_CONF

0xf8 - configure xtal32k

Source

pub const fn ulp_cp_timer(&self) -> &ULP_CP_TIMER

0xfc - configure ulp

Source

pub const fn ulp_cp_ctrl(&self) -> &ULP_CP_CTRL

0x100 - configure ulp

Source

pub const fn cocpu_ctrl(&self) -> &COCPU_CTRL

0x104 - configure ulp-riscv

Source

pub const fn touch_ctrl1(&self) -> &TOUCH_CTRL1

0x108 - configure touch controller

Source

pub const fn touch_ctrl2(&self) -> &TOUCH_CTRL2

0x10c - configure touch controller

Source

pub const fn touch_scan_ctrl(&self) -> &TOUCH_SCAN_CTRL

0x110 - configure touch controller

Source

pub const fn touch_slp_thres(&self) -> &TOUCH_SLP_THRES

0x114 - configure touch controller

Source

pub const fn touch_approach(&self) -> &TOUCH_APPROACH

0x118 - configure touch controller

Source

pub const fn touch_filter_ctrl(&self) -> &TOUCH_FILTER_CTRL

0x11c - configure touch controller

Source

pub const fn usb_conf(&self) -> &USB_CONF

0x120 - usb configure

Source

pub const fn touch_timeout_ctrl(&self) -> &TOUCH_TIMEOUT_CTRL

0x124 - configure touch controller

Source

pub const fn slp_reject_cause(&self) -> &SLP_REJECT_CAUSE

0x128 - get reject casue

Source

pub const fn option1(&self) -> &OPTION1

0x12c - rtc common configure

Source

pub const fn slp_wakeup_cause(&self) -> &SLP_WAKEUP_CAUSE

0x130 - get wakeup cause

Source

pub const fn ulp_cp_timer_1(&self) -> &ULP_CP_TIMER_1

0x134 - configure ulp sleep time

Source

pub const fn int_ena_rtc_w1ts(&self) -> &INT_ENA_RTC_W1TS

0x138 - oneset rtc interrupt

Source

pub const fn int_ena_rtc_w1tc(&self) -> &INT_ENA_RTC_W1TC

0x13c - oneset clr rtc interrupt enable

Source

pub const fn retention_ctrl(&self) -> &RETENTION_CTRL

0x140 - configure retention

Source

pub const fn pg_ctrl(&self) -> &PG_CTRL

0x144 - configure power glitch

Source

pub const fn fib_sel(&self) -> &FIB_SEL

0x148 - No public

Source

pub const fn touch_dac(&self) -> &TOUCH_DAC

0x14c - configure touch dac

Source

pub const fn touch_dac1(&self) -> &TOUCH_DAC1

0x150 - configure touch dac

Source

pub const fn cocpu_disable(&self) -> &COCPU_DISABLE

0x154 - configure ulp diable

Source

pub const fn date(&self) -> &DATE

0x1fc - version register

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

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.