RegisterBlock

Struct RegisterBlock 

Source
#[repr(C)]
pub struct RegisterBlock {
Show 14 fields pub control: CONTROL, pub time_lo: TIME_LO, pub time_hi: TIME_HI, pub rtc_time_lo: RTC_TIME_LO, pub rtc_time_hi: RTC_TIME_HI, pub interrupt_mode: INTERRUPT_MODE, pub interrupt_state: INTERRUPT_STATE, pub interrupt_clear: INTERRUPT_CLEAR, pub global: GLOBAL, pub sram: SRAM, pub rc32k: RC32K, pub xtal32k: XTAL32K, pub rtc_control_0: RTC_CONTROL_0, pub rtc_control_1: RTC_CONTROL_1, /* private fields */
}
Expand description

Register block

Fields§

§control: CONTROL

0x00 - Miscellaneous control register

§time_lo: TIME_LO

0x04 - Low bits of hibernate time

§time_hi: TIME_HI

0x08 - High bits of hibernate time

§rtc_time_lo: RTC_TIME_LO

0x0c - Low bits of Real-Time Clock time

§rtc_time_hi: RTC_TIME_HI

0x10 - High bits of Real-Time Clock time

§interrupt_mode: INTERRUPT_MODE

0x14 - Hibernate interrupt contol

§interrupt_state: INTERRUPT_STATE

0x18 - Hibernate interrupt state

§interrupt_clear: INTERRUPT_CLEAR

0x1c - Clear hibernate interrupt

§global: GLOBAL

0x30 - Global hibernate configuration

§sram: SRAM

0x34 - Static Random-Access Memory hibernate control

§rc32k: RC32K

0x200 - 32-kHz internal RC oscillator control

§xtal32k: XTAL32K

0x204 - External crystal oscillator control

§rtc_control_0: RTC_CONTROL_0

0x208 - Real-Time Clock control and reset register 0

§rtc_control_1: RTC_CONTROL_1

0x20c - Real-Time Clock control and reset register 1

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.