Struct esp32c2_hal::clock::ClockControl
source · pub struct ClockControl<'d> { /* 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§
source§impl<'d> ClockControl<'d>
impl<'d> ClockControl<'d>
source§impl<'d> ClockControl<'d>
impl<'d> ClockControl<'d>
sourcepub fn boot_defaults(
clock_control: impl Peripheral<P = SystemClockControl> + 'd
) -> ClockControl<'d>
pub fn boot_defaults( clock_control: impl Peripheral<P = SystemClockControl> + 'd ) -> ClockControl<'d>
Use what is considered the default settings after boot.
sourcepub fn configure(
clock_control: impl Peripheral<P = SystemClockControl> + 'd,
cpu_clock_speed: CpuClock
) -> ClockControl<'d>
pub fn configure( clock_control: impl Peripheral<P = SystemClockControl> + 'd, cpu_clock_speed: CpuClock ) -> ClockControl<'d>
Configure the CPU clock speed.
sourcepub fn max(
clock_control: impl Peripheral<P = SystemClockControl> + 'd
) -> ClockControl<'d>
pub fn max( clock_control: impl Peripheral<P = SystemClockControl> + 'd ) -> ClockControl<'d>
Use the highest possible frequency for a particular chip
Auto Trait Implementations§
impl<'d> RefUnwindSafe for ClockControl<'d>
impl<'d> Send for ClockControl<'d>
impl<'d> Sync for ClockControl<'d>
impl<'d> Unpin for ClockControl<'d>
impl<'d> !UnwindSafe for ClockControl<'d>
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