Struct stm32f7xx_hal::rtc::Rtc [−][src]
pub struct Rtc {
pub regs: RTC,
}
Fields
regs: RTC
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
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 date and time. Read more
Read the seconds.
Read the minutes.
Read the day of the week [1-7].
Read the date and time.