Struct stm32_hal2::clocks::Clocks [−][src]
Settings used to configure clocks.
Fields
input_src: InputSrc
pllm: Pllm
pll_vco_mul: u8
pll_sai1_mul: u8
pll_sai2_mul: u8
pllr: Pllr
hclk_prescaler: HclkPrescaler
apb1_prescaler: ApbPrescaler
apb2_prescaler: ApbPrescaler
clk48_src: Clk48Src
sai1_enabled: bool
sai2_enabled: bool
hse_bypass: bool
security_system: bool
Implementations
impl Clocks
[src]
pub fn setup(&self, rcc: &mut RCC, flash: &mut FLASH) -> Result<(), SpeedError>
[src]
Setup common and return a Valid
status if the config is valid. Return
Invalid
, and don’t setup if not.
https://docs.rs/stm32f3xx-hal/0.5.0/stm32f3xx_hal/rcc/struct.CFGR.html
Use the STM32CubeIDE Clock Configuration tab to help.
pub fn hsi_preset() -> Self
[src]
This preset configures common with a HSI, a 80Mhz sysclck. All peripheral common are at 80Mhz. HSE output is not bypassed.
Trait Implementations
impl ClockCfg for Clocks
[src]
fn sysclk(&self) -> u32
[src]
fn hclk(&self) -> u32
[src]
fn systick(&self) -> u32
[src]
fn usb(&self) -> u32
[src]
fn apb1(&self) -> u32
[src]
fn apb1_timer(&self) -> u32
[src]
fn apb2(&self) -> u32
[src]
fn apb2_timer(&self) -> u32
[src]
fn validate_speeds(&self) -> ClocksValid
[src]
impl Default for Clocks
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
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.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,