Struct RegisterBlock

Source
#[repr(C)]
pub struct RegisterBlock {
Show 20 fields pub tr: TR, pub dr: DR, pub cr: CR, pub isr: ISR, pub prer: PRER, pub alrmar: ALRMAR, pub wpr: WPR, pub ssr: SSR, pub shiftr: SHIFTR, pub tstr: TSTR, pub tsdr: TSDR, pub tsssr: TSSSR, pub calr: CALR, pub tafcr: TAFCR, pub alrmassr: ALRMASSR, pub bkp0r: BKP0R, pub bkp1r: BKP1R, pub bkp2r: BKP2R, pub bkp3r: BKP3R, pub bkp4r: BKP4R, /* private fields */
}
Expand description

Register block

Fields§

§tr: TR

0x00 - time register

§dr: DR

0x04 - date register

§cr: CR

0x08 - control register

§isr: ISR

0x0c - initialization and status register

§prer: PRER

0x10 - prescaler register

§alrmar: ALRMAR

0x1c - alarm A register

§wpr: WPR

0x24 - write protection register

§ssr: SSR

0x28 - sub second register

§shiftr: SHIFTR

0x2c - shift control register

§tstr: TSTR

0x30 - timestamp time register

§tsdr: TSDR

0x34 - timestamp date register

§tsssr: TSSSR

0x38 - time-stamp sub second register

§calr: CALR

0x3c - calibration register

§tafcr: TAFCR

0x40 - tamper and alternate function configuration register

§alrmassr: ALRMASSR

0x44 - alarm A sub second register

§bkp0r: BKP0R

0x50 - backup register

§bkp1r: BKP1R

0x54 - backup register

§bkp2r: BKP2R

0x58 - backup register

§bkp3r: BKP3R

0x5c - backup register

§bkp4r: BKP4R

0x60 - backup 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.