pub struct ClockTree {
pub sys_clk_hz: u32,
pub ref_clk_hz: u32,
pub peri_clk_hz: u32,
}Expand description
Derived clock tree frequencies. Recomputed eagerly whenever any clock-relevant register (CLOCKS, PLL_SYS, PLL_USB) changes.
Fields§
§sys_clk_hz: u32Effective system clock in Hz. Drives the Pacer.
ref_clk_hz: u32Effective reference clock in Hz.
peri_clk_hz: u32Effective peripheral clock in Hz (UART / SPI / I2C source).
Follows the selected CLK_PERI_CTRL.AUXSRC on RP2040; falls back
to sys_clk_hz when the peripheral clock is not separately
programmed (the pico-sdk default).
Implementations§
Trait Implementations§
impl Copy for ClockTree
Auto Trait Implementations§
impl Freeze for ClockTree
impl RefUnwindSafe for ClockTree
impl Send for ClockTree
impl Sync for ClockTree
impl Unpin for ClockTree
impl UnsafeUnpin for ClockTree
impl UnwindSafe for ClockTree
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