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

Error type

Set the seconds [0-59].

Set the minutes [0-59].

Set the hours. Read more

Set the day of week [1-7].

Set the day of month [1-31].

Set the month [1-12].

Set the year. (e.g. 2000)

Set the date and time. Read more

Read the seconds.

Read the minutes.

Read the hours.

Read the time.

Read the day of the week [1-7].

Read the day of the month [1-31].

Read the month [1-12].

Read the year (e.g. 2000).

Read the date.

Read the date and time.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.