pub struct Clocks { /* private fields */ }Implementations§
Source§impl Clocks
impl Clocks
pub const fn new() -> Self
pub fn enable_resus(&self)
pub fn disable_resus(&self)
pub fn disable_sys_aux(&self)
pub fn disable_ref_aux(&self)
pub fn pll_init( &self, clock: PllClock, xosc_freq: u32, refdiv: u32, vco_freq: u32, post_div1: u32, post_div2: u32, )
pub fn pll_deinit(&self, clock: PllClock)
pub fn set_frequency(&self, clock: Clock, freq: u32)
pub fn get_frequency(&self, clock: Clock) -> u32
pub fn configure_gpio_out( &self, clock: Clock, auxiliary_source: GpioAuxiliaryClockSource, source_freq: u32, freq: u32, )
pub fn configure_system( &self, source: SystemClockSource, auxiliary_source: SystemAuxiliaryClockSource, source_freq: u32, freq: u32, )
pub fn configure_reference( &self, source: ReferenceClockSource, auxiliary_source: ReferenceAuxiliaryClockSource, source_freq: u32, freq: u32, )
pub fn configure_peripheral( &self, auxiliary_source: PeripheralAuxiliaryClockSource, freq: u32, )
pub fn configure_usb( &self, auxiliary_source: UsbAuxiliaryClockSource, source_freq: u32, freq: u32, )
pub fn configure_adc( &self, auxiliary_source: AdcAuxiliaryClockSource, source_freq: u32, freq: u32, )
pub fn configure_rtc( &self, auxiliary_source: RtcAuxiliaryClockSource, source_freq: u32, freq: u32, )
Auto Trait Implementations§
impl !Freeze for Clocks
impl !RefUnwindSafe for Clocks
impl !Send for Clocks
impl !Sync for Clocks
impl !UnwindSafe for Clocks
impl Unpin for Clocks
impl UnsafeUnpin 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