pub struct Config {Show 14 fields
pub msis: Option<MSIRange>,
pub msik: Option<MSIRange>,
pub hsi: bool,
pub hse: Option<Hse>,
pub hsi48: Option<Hsi48Config>,
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,
pub auto_calibration: MsiAutoCalibration,
}Fields§
§msis: Option<MSIRange>§msik: Option<MSIRange>§hsi: bool§hse: Option<Hse>§hsi48: Option<Hsi48Config>§sys: Sysclk§ahb_pre: AHBPrescaler§apb1_pre: APBPrescaler§apb2_pre: APBPrescaler§apb3_pre: APBPrescaler§voltage_range: VoltageScaleThe voltage range influences the maximum clock frequencies for different parts of the
device. In particular, system clocks exceeding 48 MHz require RANGE1.
See RM0487 § 10.2.3 for clock source frequency limits.
ls: LsConfig§mux: ClockMuxPer-peripheral kernel clock selection muxes
auto_calibration: MsiAutoCalibrationImplementations§
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