pub struct Clocks { /* private fields */ }
Expand description
Frozen clock frequencies
The existence of this value indicates that the clock configuration can no longer be changed
To acquire it, use the freeze function on the rcc.cfgr
register. If desired, you can adjust
the frequencies using the methods on cfgr before calling freeze.
let dp = pac::Peripherals::take().unwrap();
let mut rcc = dp.RCC.constrain();
let mut flash = dp.FLASH.constrain();
let clocks = rcc.cfgr.freeze(&mut flash.acr);
Implementations§
Trait Implementations§
impl Copy for Clocks
impl Eq for Clocks
impl StructuralPartialEq for Clocks
Auto Trait Implementations§
impl Freeze for Clocks
impl RefUnwindSafe for Clocks
impl Send for Clocks
impl Sync for Clocks
impl Unpin for Clocks
impl UnwindSafe for Clocks
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