Skip to main content

RegisterBlock

Struct RegisterBlock 

Source
#[repr(C)]
pub struct RegisterBlock {
Show 13 fields pub inir: INIR, pub aer: AER, pub fcr: FCR, pub tlr: TLR, pub clr: CLR, pub tssr: TSSR, pub dwr: DWR, pub tar: TAR, pub car: CAR, pub lir: LIR, pub rier: RIER, pub riir: RIIR, pub ttr: TTR,
}
Expand description

Register block

Fields§

§inir: INIR

0x00 - RTC Initiation Register

§aer: AER

0x04 - RTC Access Enable Register

§fcr: FCR

0x08 - RTC Frequency Compensation Register

§tlr: TLR

0x0c - Time Loading Register

§clr: CLR

0x10 - Calendar Loading Register

§tssr: TSSR

0x14 - Time Scale Selection Register

§dwr: DWR

0x18 - Day of the Week Register

§tar: TAR

0x1c - Time Alarm Register

§car: CAR

0x20 - Calendar Alarm Register

§lir: LIR

0x24 - RTC Leap year Indicator Register

§rier: RIER

0x28 - RTC Interrupt Enable Register

§riir: RIIR

0x2c - RTC Interrupt Indicator Register

§ttr: TTR

0x30 - RTC Time Tick 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> Same for T

Source§

type Output = T

Should always be Self
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.