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: HertzU32Input frequency for ICLK.
mosc: Option<HertzU32>Main Oscillator frequency
sosc: boolIs the 32,768 Hz sub-clock oscillator installed?
hoco: HertzU32High-speed On-Chip Oscillator frequency (HOCO).
pll: Option<HertzU32>PLL frequency (if enabled).
system: HertzU32System clock frequency (ICLK).
flash: HertzU32Flash interface clock (FCLK).
peripheral_a: HertzU32Peripheral Clock “A” (PCLKA).
peripheral_b: HertzU32Peripheral Clock “B” (PCLKB).
peripheral_c: HertzU32Peripheral Clock “C” (PCLKC).
peripheral_d: HertzU32Peripheral Clock “D” (PCLKD).
usb: Option<HertzU32>USB Clock (UCLK)
Auto Trait Implementations§
impl Forget for ClockStatus
impl Freeze for ClockStatus
impl Move for ClockStatus
impl RefUnwindSafe for ClockStatus
impl Send for ClockStatus
impl Sync for ClockStatus
impl Unpin for ClockStatus
impl UnsafeUnpin for ClockStatus
impl UnwindSafe for ClockStatus
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