pub struct RTC { /* private fields */ }Expand description
Real Time CLock
Implementations§
Source§impl RTC
impl RTC
Sourcepub const PTR: *const RegisterBlock = {0x7090000 as *const rtc::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x7090000 as *const rtc::RegisterBlock}
Pointer to the register block
Sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Sourcepub unsafe fn steal() -> Self
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>§
Sourcepub fn losc_auto_swt_sta(&self) -> &LOSC_AUTO_SWT_STA
pub fn losc_auto_swt_sta(&self) -> &LOSC_AUTO_SWT_STA
0x04 - LOSC Auto Switch Status Register
Sourcepub fn intosc_clk_prescal(&self) -> &INTOSC_CLK_PRESCAL
pub fn intosc_clk_prescal(&self) -> &INTOSC_CLK_PRESCAL
0x08 - Internal OSC Clock Pre-scalar Register
Sourcepub fn rtc_hh_mm_ss(&self) -> &RTC_HH_MM_SS
pub fn rtc_hh_mm_ss(&self) -> &RTC_HH_MM_SS
0x14 - RTC Hour-Minute-Second Register
Sourcepub fn alarm0_day_set(&self) -> &ALARM0_DAY_SET
pub fn alarm0_day_set(&self) -> &ALARM0_DAY_SET
0x20 - Alarm 0 Day Setting Register
Sourcepub fn alarm0_cur_vlu(&self) -> &ALARM0_CUR_VLU
pub fn alarm0_cur_vlu(&self) -> &ALARM0_CUR_VLU
0x24 - Alarm 0 Counter Current Value Register
Sourcepub fn alarm0_enable(&self) -> &ALARM0_ENABLE
pub fn alarm0_enable(&self) -> &ALARM0_ENABLE
0x28 - Alarm 0 Enable Register
Sourcepub fn alarm0_irq_en(&self) -> &ALARM0_IRQ_EN
pub fn alarm0_irq_en(&self) -> &ALARM0_IRQ_EN
0x2c - Alarm 0 IRQ Enable Register
Sourcepub fn alarm0_irq_sta(&self) -> &ALARM0_IRQ_STA
pub fn alarm0_irq_sta(&self) -> &ALARM0_IRQ_STA
0x30 - Alarm 0 IRQ Status Register
Sourcepub fn alarm_config(&self) -> &ALARM_CONFIG
pub fn alarm_config(&self) -> &ALARM_CONFIG
0x50 - Alarm Configuration Register
Sourcepub fn fout_32k_ctrl_gating(&self) -> &FOUT_32K_CTRL_GATING
pub fn fout_32k_ctrl_gating(&self) -> &FOUT_32K_CTRL_GATING
0x60 - 32K Fanout Control Gating Register
Sourcepub fn fboot_info(&self, n: usize) -> &FBOOT_INFO
pub fn fboot_info(&self, n: usize) -> &FBOOT_INFO
0x120..0x128 - Fast Boot Information Register [01]
Sourcepub fn vdd_off_gating_ctrl(&self) -> &VDD_OFF_GATING_CTRL
pub fn vdd_off_gating_ctrl(&self) -> &VDD_OFF_GATING_CTRL
0x1f4 - VDD Off Gating Control Register
Sourcepub fn efuse_hv_pwrswt_ctrl(&self) -> &EFUSE_HV_PWRSWT_CTRL
pub fn efuse_hv_pwrswt_ctrl(&self) -> &EFUSE_HV_PWRSWT_CTRL
0x204 - Efuse High Voltage Power Switch Control Register
Sourcepub fn rtc_spi_clk_ctrl(&self) -> &RTC_SPI_CLK_CTRL
pub fn rtc_spi_clk_ctrl(&self) -> &RTC_SPI_CLK_CTRL
0x310 - RTC SPI Clock Control Register