#[non_exhaustive]pub enum ClockHopKind {
Terminal,
Selector {
selected_pin: u8,
pin_count: u8,
},
Multiplier,
RateMultiplier {
numerator: u16,
denominator: u16,
},
Source,
}Expand description
What a ClockHop is.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Terminal
The streaming terminal the path starts at.
Selector
A Clock Selector. Pins are 1-based. A selector with one input has
nothing to choose and is reported as selected_pin: 1, pin_count: 1
without being asked; with several, the pin is what the device reported.
Multiplier
A Clock Multiplier (one clock input).
RateMultiplier
A Clock Multiplier whose exact current ratio was read back. The output cadence is the input cadence times numerator/denominator.
Source
A Clock Source: the end of the path.
Implementations§
Trait Implementations§
Source§impl Clone for ClockHopKind
impl Clone for ClockHopKind
impl Copy for ClockHopKind
Source§impl Debug for ClockHopKind
impl Debug for ClockHopKind
impl Eq for ClockHopKind
Source§impl PartialEq for ClockHopKind
impl PartialEq for ClockHopKind
impl StructuralPartialEq for ClockHopKind
Auto Trait Implementations§
impl Forget for ClockHopKind
impl Freeze for ClockHopKind
impl Move for ClockHopKind
impl RefUnwindSafe for ClockHopKind
impl Send for ClockHopKind
impl Sync for ClockHopKind
impl Unpin for ClockHopKind
impl UnsafeUnpin for ClockHopKind
impl UnwindSafe for ClockHopKind
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