#[non_exhaustive]pub struct Config {Show 13 fields
pub hsi: bool,
pub hsi_div3: bool,
pub hsik: Option<HsiKernel>,
pub hse: Option<Hse>,
pub ls: LsConfig,
pub psi: Option<Psi>,
pub sys: Sysclk,
pub ahb_pre: AHBPrescaler,
pub apb1_pre: APBPrescaler,
pub apb2_pre: APBPrescaler,
pub apb3_pre: APBPrescaler,
pub adcdac_pre: Adcdacpre,
pub mux: ClockMux,
}Expand description
Configuration of the core clocks
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.hsi: boolEnable HSI full speed tap (144MHz)
hsi_div3: boolEnable HSI Div 3 tap (48MHz)
hsik: Option<HsiKernel>§hse: Option<Hse>§ls: LsConfigLow-speed clocks and RTC clock source. The RTC domain is not reset during initialization, as this would erase SRAM2. Changing a previously selected RTC clock source requires a power cycle.
psi: Option<Psi>PSI oscillator configuration. None disables all PSI outputs.
sys: SysclkSystem Clock Configuration
ahb_pre: AHBPrescaler§apb1_pre: APBPrescaler§apb2_pre: APBPrescaler§apb3_pre: APBPrescaler§adcdac_pre: Adcdacpre§mux: ClockMuxPer-peripheral kernel clock selection muxes
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Config
impl Freeze for Config
impl Move for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
Blanket Implementations§
impl<T, I> Binding<I, NoHandler<I>> for T
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