Struct RTC_TypeDef

Source
#[repr(C)]
pub struct RTC_TypeDef {
Show 40 fields pub TR: u32, pub DR: u32, pub CR: u32, pub ISR: u32, pub PRER: u32, pub WUTR: u32, pub RESERVED: u32, pub ALRMAR: u32, pub ALRMBR: u32, pub WPR: u32, pub SSR: u32, pub SHIFTR: u32, pub TSTR: u32, pub TSDR: u32, pub TSSSR: u32, pub CALR: u32, pub TAMPCR: u32, pub ALRMASSR: u32, pub ALRMBSSR: u32, pub OR: u32, pub BKP0R: u32, pub BKP1R: u32, pub BKP2R: u32, pub BKP3R: u32, pub BKP4R: u32, pub BKP5R: u32, pub BKP6R: u32, pub BKP7R: u32, pub BKP8R: u32, pub BKP9R: u32, pub BKP10R: u32, pub BKP11R: u32, pub BKP12R: u32, pub BKP13R: u32, pub BKP14R: u32, pub BKP15R: u32, pub BKP16R: u32, pub BKP17R: u32, pub BKP18R: u32, pub BKP19R: u32,
}
Expand description

Real-Time Clock

Fields§

§TR: u32

< RTC time register, Address offset: 0x00

§DR: u32

< RTC date register, Address offset: 0x04

§CR: u32

< RTC control register, Address offset: 0x08

§ISR: u32

< RTC initialization and status register, Address offset: 0x0C

§PRER: u32

< RTC prescaler register, Address offset: 0x10

§WUTR: u32

< RTC wakeup timer register, Address offset: 0x14

§RESERVED: u32

< Reserved, Address offset: 0x18

§ALRMAR: u32

< RTC alarm A register, Address offset: 0x1C

§ALRMBR: u32

< RTC alarm B register, Address offset: 0x20

§WPR: u32

< RTC write protection register, Address offset: 0x24

§SSR: u32

< RTC sub second register, Address offset: 0x28

§SHIFTR: u32

< RTC shift control register, Address offset: 0x2C

§TSTR: u32

< RTC time stamp time register, Address offset: 0x30

§TSDR: u32

< RTC time stamp date register, Address offset: 0x34

§TSSSR: u32

< RTC time-stamp sub second register, Address offset: 0x38

§CALR: u32

< RTC calibration register, Address offset: 0x3C

§TAMPCR: u32

< RTC tamper configuration register, Address offset: 0x40

§ALRMASSR: u32

< RTC alarm A sub second register, Address offset: 0x44

§ALRMBSSR: u32

< RTC alarm B sub second register, Address offset: 0x48

§OR: u32

< RTC option register, Address offset 0x4C

§BKP0R: u32

< RTC backup register 0, Address offset: 0x50

§BKP1R: u32

< RTC backup register 1, Address offset: 0x54

§BKP2R: u32

< RTC backup register 2, Address offset: 0x58

§BKP3R: u32

< RTC backup register 3, Address offset: 0x5C

§BKP4R: u32

< RTC backup register 4, Address offset: 0x60

§BKP5R: u32

< RTC backup register 5, Address offset: 0x64

§BKP6R: u32

< RTC backup register 6, Address offset: 0x68

§BKP7R: u32

< RTC backup register 7, Address offset: 0x6C

§BKP8R: u32

< RTC backup register 8, Address offset: 0x70

§BKP9R: u32

< RTC backup register 9, Address offset: 0x74

§BKP10R: u32

< RTC backup register 10, Address offset: 0x78

§BKP11R: u32

< RTC backup register 11, Address offset: 0x7C

§BKP12R: u32

< RTC backup register 12, Address offset: 0x80

§BKP13R: u32

< RTC backup register 13, Address offset: 0x84

§BKP14R: u32

< RTC backup register 14, Address offset: 0x88

§BKP15R: u32

< RTC backup register 15, Address offset: 0x8C

§BKP16R: u32

< RTC backup register 16, Address offset: 0x90

§BKP17R: u32

< RTC backup register 17, Address offset: 0x94

§BKP18R: u32

< RTC backup register 18, Address offset: 0x98

§BKP19R: u32

< RTC backup register 19, Address offset: 0x9C

Trait Implementations§

Source§

impl Clone for RTC_TypeDef

Source§

fn clone(&self) -> RTC_TypeDef

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RTC_TypeDef

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for RTC_TypeDef

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, 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.