Skip to main content

ClockStatus

Struct ClockStatus 

Source
pub struct ClockStatus {
    pub master: HertzU32,
    pub mosc: Option<HertzU32>,
    pub sosc: bool,
    pub hoco: HertzU32,
    pub pll: Option<HertzU32>,
    pub system: HertzU32,
    pub flash: HertzU32,
    pub peripheral_a: HertzU32,
    pub peripheral_b: HertzU32,
    pub peripheral_c: HertzU32,
    pub peripheral_d: HertzU32,
    pub usb: Option<HertzU32>,
}
Expand description

Current state of the clocks.

Fields§

§master: HertzU32

Input frequency for ICLK.

§mosc: Option<HertzU32>

Main Oscillator frequency

§sosc: bool

Is the 32,768 Hz sub-clock oscillator installed?

§hoco: HertzU32

High-speed On-Chip Oscillator frequency (HOCO).

§pll: Option<HertzU32>

PLL frequency (if enabled).

§system: HertzU32

System clock frequency (ICLK).

§flash: HertzU32

Flash interface clock (FCLK).

§peripheral_a: HertzU32

Peripheral Clock “A” (PCLKA).

§peripheral_b: HertzU32

Peripheral Clock “B” (PCLKB).

§peripheral_c: HertzU32

Peripheral Clock “C” (PCLKC).

§peripheral_d: HertzU32

Peripheral Clock “D” (PCLKD).

§usb: Option<HertzU32>

USB Clock (UCLK)

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.