[−][src]Struct alt_stm32f30x_hal::rcc::CFGR
Clock configuration
Methods
impl CFGR
[src]
pub fn hse<F>(self, freq: F, divider: HseDivider, bypass: HseBypass) -> Self where
F: Into<Hertz<u32>>,
[src]
F: Into<Hertz<u32>>,
Sets a HseConfig that checks that the HSE divider is valid and if the clock is in bypass mode
pub fn hclk<F>(self, freq: F) -> Self where
F: Into<Hertz<u32>>,
[src]
F: Into<Hertz<u32>>,
Sets a frequency for the AHB bus
pub fn pclk1<F>(self, freq: F) -> Self where
F: Into<Hertz<u32>>,
[src]
F: Into<Hertz<u32>>,
Sets a frequency for the APB1 bus
pub fn pclk2<F>(self, freq: F) -> Self where
F: Into<Hertz<u32>>,
[src]
F: Into<Hertz<u32>>,
Sets a frequency for the APB2 bus
pub fn sysclk<F>(self, freq: F) -> Self where
F: Into<Hertz<u32>>,
[src]
F: Into<Hertz<u32>>,
Sets the system (core) frequency
pub fn freeze(self, acr: &mut ACR) -> Clocks
[src]
Freezes the clock configuration, making it effective
Auto Trait Implementations
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self