Struct stm32_hal2::rtc::RtcConfig[][src]

pub struct RtcConfig {
    pub clock_source: RtcClockSource,
    pub async_prescaler: u8,
    pub sync_prescaler: u16,
    pub bypass_lse_output: bool,
}

Fields

clock_source: RtcClockSource

RTC clock source

async_prescaler: u8

Asynchronous prescaler factor This is the asynchronous division factor: ck_apre frequency = RTCCLK frequency/(PREDIV_A+1) ck_apre drives the subsecond register

sync_prescaler: u16

Synchronous prescaler factor This is the synchronous division factor: ck_spre frequency = ck_apre frequency/(PREDIV_S+1) ck_spre must be 1Hz

bypass_lse_output: bool

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

LSI with prescalers assuming 32.768 kHz. Raw sub-seconds in 1/256.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.

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.