RTC

Struct RTC 

Source
pub struct RTC { /* private fields */ }
Expand description

Real Time CLock

Implementations§

Source§

impl RTC

Source

pub const PTR: *const RegisterBlock = {0x7090000 as *const rtc::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 losc_ctrl(&self) -> &LOSC_CTRL

0x00 - Low Oscillator Control Register

Source

pub fn losc_auto_swt_sta(&self) -> &LOSC_AUTO_SWT_STA

0x04 - LOSC Auto Switch Status Register

Source

pub fn intosc_clk_prescal(&self) -> &INTOSC_CLK_PRESCAL

0x08 - Internal OSC Clock Pre-scalar Register

Source

pub fn rtc_day(&self) -> &RTC_DAY

0x10 - RTC Year-Month-Day Register

Source

pub fn rtc_hh_mm_ss(&self) -> &RTC_HH_MM_SS

0x14 - RTC Hour-Minute-Second Register

Source

pub fn alarm0_day_set(&self) -> &ALARM0_DAY_SET

0x20 - Alarm 0 Day Setting Register

Source

pub fn alarm0_cur_vlu(&self) -> &ALARM0_CUR_VLU

0x24 - Alarm 0 Counter Current Value Register

Source

pub fn alarm0_enable(&self) -> &ALARM0_ENABLE

0x28 - Alarm 0 Enable Register

Source

pub fn alarm0_irq_en(&self) -> &ALARM0_IRQ_EN

0x2c - Alarm 0 IRQ Enable Register

Source

pub fn alarm0_irq_sta(&self) -> &ALARM0_IRQ_STA

0x30 - Alarm 0 IRQ Status Register

Source

pub fn alarm_config(&self) -> &ALARM_CONFIG

0x50 - Alarm Configuration Register

Source

pub fn fout_32k_ctrl_gating(&self) -> &FOUT_32K_CTRL_GATING

0x60 - 32K Fanout Control Gating Register

Source

pub fn gp_data(&self, n: usize) -> &GP_DATA

0x100..0x120 - General Purpose Register

Source

pub fn fboot_info(&self, n: usize) -> &FBOOT_INFO

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

Source

pub fn dcxo_ctrl(&self) -> &DCXO_CTRL

0x160 - DCXO Control Register

Source

pub fn rtc_vio(&self) -> &RTC_VIO

0x190 - RTC_VIO Regulation Register

Source

pub fn ic_chara(&self) -> &IC_CHARA

0x1f0 - IC Characteristic Register

Source

pub fn vdd_off_gating_ctrl(&self) -> &VDD_OFF_GATING_CTRL

0x1f4 - VDD Off Gating Control Register

Source

pub fn efuse_hv_pwrswt_ctrl(&self) -> &EFUSE_HV_PWRSWT_CTRL

0x204 - Efuse High Voltage Power Switch Control Register

Source

pub fn rtc_spi_clk_ctrl(&self) -> &RTC_SPI_CLK_CTRL

0x310 - RTC SPI Clock Control Register

Trait Implementations§

Source§

impl Debug for RTC

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for RTC

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Send for RTC

Auto Trait Implementations§

§

impl Freeze for RTC

§

impl RefUnwindSafe for RTC

§

impl !Sync for RTC

§

impl Unpin for RTC

§

impl UnwindSafe for RTC

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.