Struct RegisterBlock

Source
#[repr(C)]
pub struct RegisterBlock {
Show 39 fields pub tr: TR, pub dr: DR, pub cr: CR, pub isr: ISR, pub prer: PRER, pub wutr: WUTR, pub calibr: CALIBR, pub alrmar: ALRMAR, pub alrmbr: ALRMBR, 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 alrmbssr: ALRMBSSR, pub bkp0r: BKP0R, pub bkp1r: BKP1R, pub bkp2r: BKP2R, pub bkp3r: BKP3R, pub bkp4r: BKP4R, pub bkp5r: BKP5R, pub bkp6r: BKP6R, pub bkp7r: BKP7R, pub bkp8r: BKP8R, pub bkp9r: BKP9R, pub bkp10r: BKP10R, pub bkp11r: BKP11R, pub bkp12r: BKP12R, pub bkp13r: BKP13R, pub bkp14r: BKP14R, pub bkp15r: BKP15R, pub bkp16r: BKP16R, pub bkp17r: BKP17R, pub bkp18r: BKP18R, pub bkp19r: BKP19R, /* 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

§wutr: WUTR

0x14 - wakeup timer register

§calibr: CALIBR

0x18 - calibration register

§alrmar: ALRMAR

0x1c - alarm A register

§alrmbr: ALRMBR

0x20 - alarm B register

§wpr: WPR

0x24 - write protection register

§ssr: SSR

0x28 - sub second register

§shiftr: SHIFTR

0x2c - shift control register

§tstr: TSTR

0x30 - time stamp time register

§tsdr: TSDR

0x34 - time stamp date register

§tsssr: TSSSR

0x38 - timestamp 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

§alrmbssr: ALRMBSSR

0x48 - alarm B 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

§bkp5r: BKP5R

0x64 - backup register

§bkp6r: BKP6R

0x68 - backup register

§bkp7r: BKP7R

0x6c - backup register

§bkp8r: BKP8R

0x70 - backup register

§bkp9r: BKP9R

0x74 - backup register

§bkp10r: BKP10R

0x78 - backup register

§bkp11r: BKP11R

0x7c - backup register

§bkp12r: BKP12R

0x80 - backup register

§bkp13r: BKP13R

0x84 - backup register

§bkp14r: BKP14R

0x88 - backup register

§bkp15r: BKP15R

0x8c - backup register

§bkp16r: BKP16R

0x90 - backup register

§bkp17r: BKP17R

0x94 - backup register

§bkp18r: BKP18R

0x98 - backup register

§bkp19r: BKP19R

0x9c - 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.