Struct RegisterBlock

Source
#[repr(C)]
pub struct RegisterBlock {
Show 19 fields pub tr: Reg<u32, _TR>, pub dr: Reg<u32, _DR>, pub cr: Reg<u32, _CR>, pub isr: Reg<u32, _ISR>, pub prer: Reg<u32, _PRER>, pub wutr: Reg<u32, _WUTR>, pub alrmar: Reg<u32, _ALRMAR>, pub alrmbr: Reg<u32, _ALRMBR>, pub wpr: Reg<u32, _WPR>, pub ssr: Reg<u32, _SSR>, pub shiftr: Reg<u32, _SHIFTR>, pub tstr: Reg<u32, _TSTR>, pub tsdr: Reg<u32, _TSDR>, pub tsssr: Reg<u32, _TSSSR>, pub calr: Reg<u32, _CALR>, pub tafcr: Reg<u32, _TAFCR>, pub alrmassr: Reg<u32, _ALRMASSR>, pub alrmbssr: Reg<u32, _ALRMBSSR>, pub bkpr: [Reg<u32, _BKPR>; 32], /* private fields */
}
Expand description

Register block

Fields§

§tr: Reg<u32, _TR>

0x00 - time register

§dr: Reg<u32, _DR>

0x04 - date register

§cr: Reg<u32, _CR>

0x08 - control register

§isr: Reg<u32, _ISR>

0x0c - initialization and status register

§prer: Reg<u32, _PRER>

0x10 - prescaler register

§wutr: Reg<u32, _WUTR>

0x14 - wakeup timer register

§alrmar: Reg<u32, _ALRMAR>

0x1c - alarm A register

§alrmbr: Reg<u32, _ALRMBR>

0x20 - alarm B register

§wpr: Reg<u32, _WPR>

0x24 - write protection register

§ssr: Reg<u32, _SSR>

0x28 - sub second register

§shiftr: Reg<u32, _SHIFTR>

0x2c - shift control register

§tstr: Reg<u32, _TSTR>

0x30 - time stamp time register

§tsdr: Reg<u32, _TSDR>

0x34 - time stamp date register

§tsssr: Reg<u32, _TSSSR>

0x38 - timestamp sub second register

§calr: Reg<u32, _CALR>

0x3c - calibration register

§tafcr: Reg<u32, _TAFCR>

0x40 - tamper and alternate function configuration register

§alrmassr: Reg<u32, _ALRMASSR>

0x44 - alarm A sub second register

§alrmbssr: Reg<u32, _ALRMBSSR>

0x48 - alarm B sub second register

§bkpr: [Reg<u32, _BKPR>; 32]

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