Struct esp32c2_hal::clock::ClockControl
source · pub struct ClockControl { /* private fields */ }
Expand description
Used to configure the frequencies of the clocks present in the chip.
After setting all frequencies, call the freeze function to apply the configuration.
Implementations
sourceimpl ClockControl
impl ClockControl
sourceimpl ClockControl
impl ClockControl
sourcepub fn boot_defaults(clock_control: SystemClockControl) -> ClockControl
pub fn boot_defaults(clock_control: SystemClockControl) -> ClockControl
Use what is considered the default settings after boot.
sourcepub fn configure(
clock_control: SystemClockControl,
cpu_clock_speed: CpuClock
) -> ClockControl
pub fn configure(
clock_control: SystemClockControl,
cpu_clock_speed: CpuClock
) -> ClockControl
Configure the CPU clock speed.
Auto Trait Implementations
impl RefUnwindSafe for ClockControl
impl Send for ClockControl
impl Sync for ClockControl
impl Unpin for ClockControl
impl UnwindSafe for ClockControl
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more