Struct stm32l0x1_hal::rcc::CFGR

source ·
pub struct CFGR {
    pub hclk_fclk: Hertz,
    pub pclk1: Hertz,
    pub pclk2: Hertz,
    pub sysclk_src: SysClkSource,
    pub lsi: LowSpeedInternalRC,
    pub msi: MediumSpeedInternalRC,
    pub hsi16: HighSpeedInternal16RC,
    pub lse: Option<LowSpeedExternalOSC>,
}
Expand description

Clock configuration register

Fields§

§hclk_fclk: Hertz

Desired HCLK/FCLK frequency

§pclk1: Hertz

Desired peripheral clock 1 frequency

§pclk2: Hertz

Desired peripheral clock 2 frequency

§sysclk_src: SysClkSource

SYSCLK source selection

§lsi: LowSpeedInternalRC

Low-speed internal RC configuration

§msi: MediumSpeedInternalRC

Medium-speed internal RC configuration

§hsi16: HighSpeedInternal16RC

High-speed 16 MHz internal RC configuration

§lse: Option<LowSpeedExternalOSC>

Low-speed external oscillator configuration

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.