#[repr(C)]
pub struct RegisterBlock {
Show 21 fields pub tr: Reg<TR_SPEC>, pub dr: Reg<DR_SPEC>, pub ssr: Reg<SSR_SPEC>, pub icsr: Reg<ICSR_SPEC>, pub prer: Reg<PRER_SPEC>, pub wutr: Reg<WUTR_SPEC>, pub cr: Reg<CR_SPEC>, pub wpr: Reg<WPR_SPEC>, pub calr: Reg<CALR_SPEC>, pub shiftr: Reg<SHIFTR_SPEC>, pub tstr: Reg<TSTR_SPEC>, pub tsdr: Reg<TSDR_SPEC>, pub tsssr: Reg<TSSSR_SPEC>, pub alrmar: Reg<ALRMR_SPEC>, pub alrmassr: Reg<ALRMSSR_SPEC>, pub alrmbr: Reg<ALRMR_SPEC>, pub alrmbssr: Reg<ALRMSSR_SPEC>, pub sr: Reg<SR_SPEC>, pub misr: Reg<MISR_SPEC>, pub scr: Reg<SCR_SPEC>, pub alrbinr: [Reg<ALRBINR_SPEC>; 2], /* private fields */
}
Available on crate feature stm32wl5x_cm4 only.
Expand description

Register block

Fields§

§tr: Reg<TR_SPEC>

0x00 - Time register

§dr: Reg<DR_SPEC>

0x04 - Date register

§ssr: Reg<SSR_SPEC>

0x08 - Sub second register

§icsr: Reg<ICSR_SPEC>

0x0c - Initialization control and status register

§prer: Reg<PRER_SPEC>

0x10 - Pre-scaler register

§wutr: Reg<WUTR_SPEC>

0x14 - Wakeup timer register

§cr: Reg<CR_SPEC>

0x18 - Control register

§wpr: Reg<WPR_SPEC>

0x24 - Write protection register

§calr: Reg<CALR_SPEC>

0x28 - Calibration register

§shiftr: Reg<SHIFTR_SPEC>

0x2c - Shift control register

§tstr: Reg<TSTR_SPEC>

0x30 - Timestamp time register

§tsdr: Reg<TSDR_SPEC>

0x34 - Timestamp date register

§tsssr: Reg<TSSSR_SPEC>

0x38 - Timestamp sub second register

§alrmar: Reg<ALRMR_SPEC>

0x40 - Alarm register

§alrmassr: Reg<ALRMSSR_SPEC>

0x44 - Alarm sub-second register

§alrmbr: Reg<ALRMR_SPEC>

0x48 - Alarm register

§alrmbssr: Reg<ALRMSSR_SPEC>

0x4c - Alarm sub-second register

§sr: Reg<SR_SPEC>

0x50 - Status register (interrupts)

§misr: Reg<MISR_SPEC>

0x54 - Masked interrupt status register

§scr: Reg<SCR_SPEC>

0x5c - Status clear register (interrupts)

§alrbinr: [Reg<ALRBINR_SPEC>; 2]

0x70..0x78 - RTC alarm A binary mode register

Implementations§

§

impl RegisterBlock

pub fn alrabinr(&self) -> &Reg<ALRBINR_SPEC>

0x70 - RTC alarm A binary mode register

pub fn alrbbinr(&self) -> &Reg<ALRBINR_SPEC>

0x74 - RTC alarm A binary mode register

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.