pub struct Config {
pub mux: ClockSrc,
pub ahb_pre: AHBPrescaler,
pub apb1_pre: APBPrescaler,
pub apb2_pre: APBPrescaler,
pub low_power_run: bool,
pub pll: Option<Pll>,
pub clock_48mhz_src: Option<Clock48MhzSrc>,
pub adc12_clock_source: AdcClockSource,
pub adc345_clock_source: AdcClockSource,
pub ls: LsConfig,
}
Expand description
Clocks configutation
Fields§
§mux: ClockSrc
§ahb_pre: AHBPrescaler
§apb1_pre: APBPrescaler
§apb2_pre: APBPrescaler
§low_power_run: bool
§pll: Option<Pll>
Iff PLL is requested as the main clock source in the mux
field then the PLL configuration
MUST turn on the PLLR output.
clock_48mhz_src: Option<Clock48MhzSrc>
Sets the clock source for the 48MHz clock used by the USB and RNG peripherals.
adc12_clock_source: AdcClockSource
§adc345_clock_source: AdcClockSource
§ls: LsConfig
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