[][src]Struct stm32l4xx_hal::rcc::CFGR

pub struct CFGR { /* fields omitted */ }

Clock configuration

Methods

impl CFGR[src]

pub fn hclk<F>(self, freq: F) -> Self where
    F: Into<Hertz>, 
[src]

Sets a frequency for the AHB bus

pub fn hsi48(self, on: bool) -> Self[src]

Enable the 48Mh USB, RNG, SDMMC clock source. Not available on all stm32l4x6 series

pub fn msi(self, range: MsiFreq) -> Self[src]

pub fn lsi(self, on: bool) -> Self[src]

Sets LSI clock on (the default) or off

pub fn pclk1<F>(self, freq: F) -> Self where
    F: Into<Hertz>, 
[src]

Sets a frequency for the APB1 bus

pub fn pclk2<F>(self, freq: F) -> Self where
    F: Into<Hertz>, 
[src]

Sets a frequency for the APB2 bus

pub fn sysclk<F>(self, freq: F) -> Self where
    F: Into<Hertz>, 
[src]

Sets the system (core) frequency

pub fn sysclk_with_pll<F>(self, freq: F, cfg: PllConfig) -> Self where
    F: Into<Hertz>, 
[src]

Sets the system (core) frequency with some pll configuration

pub fn freeze(&self, acr: &mut ACR) -> Clocks[src]

Freezes the clock configuration, making it effective

Auto Trait Implementations

impl Unpin for CFGR

impl Sync for CFGR

impl Send for CFGR

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self