esp_hal::clock

Trait Clock

Source
pub trait Clock {
    // Required method
    fn frequency(&self) -> HertzU32;

    // Provided methods
    fn mhz(&self) -> u32 { ... }
    fn hz(&self) -> u32 { ... }
}
Expand description

Clock properties

Required Methods§

Source

fn frequency(&self) -> HertzU32

Frequency of the clock in Hertz, using fugit types.

Provided Methods§

Source

fn mhz(&self) -> u32

Frequency of the clock in Megahertz

Source

fn hz(&self) -> u32

Frequency of the clock in Hertz

Implementors§