pub enum ClockMode {
FixedDivider(u16, u8),
TargetFreqFrac(u32),
TargetFreqInt(u32),
ExternalPin(BioPin),
}Variants§
FixedDivider(u16, u8)
Fixed divider - (int, frac)
TargetFreqFrac(u32)
Target frequency - fractional allowed. Attempts to adjust to target based on changing CPU clock. Fractional component means the “average” frequency is achieved by occasionally skipping clocks. This means there is jitter in the edge timing.
TargetFreqInt(u32)
Target frequency - integer dividers only allowed. The absolute error of the frequency may be larger, but the jitter is smaller. Attempts to adjust to the target based on changing CPU clock.
ExternalPin(BioPin)
Use external pin as quantum source
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClockMode
impl RefUnwindSafe for ClockMode
impl Send for ClockMode
impl Sync for ClockMode
impl Unpin for ClockMode
impl UnwindSafe for ClockMode
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