pub struct CFGR { /* private fields */ }Expand description
Clock configuration
Implementations§
Source§impl CFGR
impl CFGR
Sourcepub fn hse(
self,
freq: Hertz,
bypass: CrystalBypass,
css: ClockSecuritySystem,
) -> Self
pub fn hse( self, freq: Hertz, bypass: CrystalBypass, css: ClockSecuritySystem, ) -> Self
Add an HSE to the system
Sourcepub fn lse(self, bypass: CrystalBypass, css: ClockSecuritySystem) -> Self
pub fn lse(self, bypass: CrystalBypass, css: ClockSecuritySystem) -> Self
Add an 32.768 kHz LSE to the system
Sourcepub fn hsi48(self, on: bool) -> Self
pub fn hsi48(self, on: bool) -> Self
Enable the 48 MHz USB, RNG, SDMMC HSI clock source. Not available on all stm32l4x6 series
Sourcepub fn sysclk_with_pll(self, freq: Hertz, cfg: PllConfig) -> Self
pub fn sysclk_with_pll(self, freq: Hertz, cfg: PllConfig) -> Self
Sets the system (core) frequency with some pll configuration
Sourcepub fn pll_source(self, source: PllSource) -> Self
pub fn pll_source(self, source: PllSource) -> Self
Sets the PLL source
Auto Trait Implementations§
impl Freeze for CFGR
impl RefUnwindSafe for CFGR
impl Send for CFGR
impl Sync for CFGR
impl Unpin for CFGR
impl UnwindSafe for CFGR
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