Struct d1_pac::rtc::RegisterBlock

source ·
#[repr(C)]
pub struct RegisterBlock {
Show 20 fields pub losc_ctrl: LOSC_CTRL, pub losc_auto_swt_sta: LOSC_AUTO_SWT_STA, pub intosc_clk_prescal: INTOSC_CLK_PRESCAL, pub rtc_day: RTC_DAY, pub rtc_hh_mm_ss: RTC_HH_MM_SS, pub alarm0_day_set: ALARM0_DAY_SET, pub alarm0_cur_vlu: ALARM0_CUR_VLU, pub alarm0_enable: ALARM0_ENABLE, pub alarm0_irq_en: ALARM0_IRQ_EN, pub alarm0_irq_sta: ALARM0_IRQ_STA, pub alarm_config: ALARM_CONFIG, pub fout_32k_ctrl_gating: FOUT_32K_CTRL_GATING, pub gp_data: [GP_DATA; 8], pub fboot_info: [FBOOT_INFO; 2], pub dcxo_ctrl: DCXO_CTRL, pub rtc_vio: RTC_VIO, pub ic_chara: IC_CHARA, pub vdd_off_gating_ctrl: VDD_OFF_GATING_CTRL, pub efuse_hv_pwrswt_ctrl: EFUSE_HV_PWRSWT_CTRL, pub rtc_spi_clk_ctrl: RTC_SPI_CLK_CTRL, /* private fields */
}
Expand description

Register block

Fields§

§losc_ctrl: LOSC_CTRL

0x00 - Low Oscillator Control Register

§losc_auto_swt_sta: LOSC_AUTO_SWT_STA

0x04 - LOSC Auto Switch Status Register

§intosc_clk_prescal: INTOSC_CLK_PRESCAL

0x08 - Internal OSC Clock Pre-scalar Register

§rtc_day: RTC_DAY

0x10 - RTC Year-Month-Day Register

§rtc_hh_mm_ss: RTC_HH_MM_SS

0x14 - RTC Hour-Minute-Second Register

§alarm0_day_set: ALARM0_DAY_SET

0x20 - Alarm 0 Day Setting Register

§alarm0_cur_vlu: ALARM0_CUR_VLU

0x24 - Alarm 0 Counter Current Value Register

§alarm0_enable: ALARM0_ENABLE

0x28 - Alarm 0 Enable Register

§alarm0_irq_en: ALARM0_IRQ_EN

0x2c - Alarm 0 IRQ Enable Register

§alarm0_irq_sta: ALARM0_IRQ_STA

0x30 - Alarm 0 IRQ Status Register

§alarm_config: ALARM_CONFIG

0x50 - Alarm Configuration Register

§fout_32k_ctrl_gating: FOUT_32K_CTRL_GATING

0x60 - 32K Fanout Control Gating Register

§gp_data: [GP_DATA; 8]

0x100..0x120 - General Purpose Register

§fboot_info: [FBOOT_INFO; 2]

0x120..0x128 - Fast Boot Information Register [01]

§dcxo_ctrl: DCXO_CTRL

0x160 - DCXO Control Register

§rtc_vio: RTC_VIO

0x190 - RTC_VIO Regulation Register

§ic_chara: IC_CHARA

0x1f0 - IC Characteristic Register

§vdd_off_gating_ctrl: VDD_OFF_GATING_CTRL

0x1f4 - VDD Off Gating Control Register

§efuse_hv_pwrswt_ctrl: EFUSE_HV_PWRSWT_CTRL

0x204 - Efuse High Voltage Power Switch Control Register

§rtc_spi_clk_ctrl: RTC_SPI_CLK_CTRL

0x310 - RTC SPI Clock Control 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>,

§

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.