pub struct Config {Show 16 fields
pub msis: Option<MSIRange>,
pub msik: Option<MSIRange>,
pub hsi: bool,
pub hse: Option<Hse>,
pub hsi48: Option<Hsi48Config>,
pub pll1: Option<Pll>,
pub pll2: Option<Pll>,
pub pll3: Option<Pll>,
pub sys: Sysclk,
pub ahb_pre: AHBPrescaler,
pub apb1_pre: APBPrescaler,
pub apb2_pre: APBPrescaler,
pub apb3_pre: APBPrescaler,
pub voltage_range: VoltageScale,
pub ls: LsConfig,
pub mux: ClockMux,
}
Fields§
§msis: Option<MSIRange>
§msik: Option<MSIRange>
§hsi: bool
§hse: Option<Hse>
§hsi48: Option<Hsi48Config>
§pll1: Option<Pll>
§pll2: Option<Pll>
§pll3: Option<Pll>
§sys: Sysclk
§ahb_pre: AHBPrescaler
§apb1_pre: APBPrescaler
§apb2_pre: APBPrescaler
§apb3_pre: APBPrescaler
§voltage_range: VoltageScale
The voltage range influences the maximum clock frequencies for different parts of the
device. In particular, system clocks exceeding 110 MHz require RANGE1
, and system clocks
exceeding 55 MHz require at least RANGE2
.
See RM0456 § 10.5.4 for a general overview and § 11.4.10 for clock source frequency limits.
ls: LsConfig
§mux: ClockMux
Per-peripheral kernel clock selection muxes
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more