Struct alt_stm32f30x_hal::rcc::CFGR
source · [−]pub struct CFGR { /* private fields */ }
Expand description
Clock configuration
Implementations
sourceimpl CFGR
impl CFGR
sourcepub fn hse<F>(self, freq: F, divider: HseDivider, bypass: HseBypass) -> Self where
F: Into<Hertz<u32>>,
pub fn hse<F>(self, freq: F, divider: HseDivider, bypass: HseBypass) -> Self where
F: Into<Hertz<u32>>,
Sets a HseConfig that checks that the HSE divider is valid and if the clock is in bypass mode
sourcepub fn hclk<F>(self, freq: F) -> Self where
F: Into<Hertz<u32>>,
pub fn hclk<F>(self, freq: F) -> Self where
F: Into<Hertz<u32>>,
Sets a frequency for the AHB bus
sourcepub fn pclk1<F>(self, freq: F) -> Self where
F: Into<Hertz<u32>>,
pub fn pclk1<F>(self, freq: F) -> Self where
F: Into<Hertz<u32>>,
Sets a frequency for the APB1 bus
sourcepub fn pclk2<F>(self, freq: F) -> Self where
F: Into<Hertz<u32>>,
pub fn pclk2<F>(self, freq: F) -> Self where
F: Into<Hertz<u32>>,
Sets a frequency for the APB2 bus
Auto Trait Implementations
impl RefUnwindSafe for CFGR
impl Send for CFGR
impl Sync for CFGR
impl Unpin for CFGR
impl UnwindSafe for CFGR
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more