Struct stm32f3xx_hal::rtc::Rtc [−][src]
pub struct Rtc { /* fields omitted */ }Expand description
Real Time Clock peripheral
Implementations
Create and enable a new RTC, and configure its clock source and prescalers.
From AN4759, Table 7, when using the LSE (The only clock source this module
supports currently), set prediv_s to 255, and prediv_a to 127 to get a
calendar clock of 1Hz.
The bypass argument is true if you’re using an external oscillator that
doesn’t connect to OSC32_IN, such as a MEMS resonator.
Sets calendar clock to 24 hr format
Sets calendar clock to 12 hr format
Reads current hour format selection
Get access to the underlying register block.
Safety
This function is not memory unsafe per se, but does not guarantee anything about assumptions of invariants made in this implementation.
Changing specific options can lead to un-expected behavior and nothing is guaranteed.
Trait Implementations
set time using NaiveTime (ISO 8601 time without timezone) Hour format is 24h
Set the date using NaiveDate (ISO 8601 calendar date without timezone).
WeekDay is set using the set_weekday method
Set the seconds [0-59].
Set the minutes [0-59].
Set the day of week [1-7].
Set the date and time. Read more
Read the seconds.
Read the minutes.
Read the day of the week [1-7].
Read the date and time.