#[repr(transparent)]pub struct ClkRefSelected(pub u32);
Expand description
Indicates which src is currently selected (one-hot)
Tuple Fields§
§0: u32
Implementations§
Source§impl ClkRefSelected
impl ClkRefSelected
Sourcepub const fn clk_ref_selected(&self) -> u8
pub const fn clk_ref_selected(&self) -> u8
The glitchless multiplexer does not switch instantaneously (to avoid glitches), so software should poll this register to wait for the switch to complete. This register contains one decoded bit for each of the clock sources enumerated in the CTRL SRC field. At most one of these bits will be set at any time, indicating that clock is currently present at the output of the glitchless mux. Whilst switching is in progress, this register may briefly show all-0s.
Sourcepub fn set_clk_ref_selected(&mut self, val: u8)
pub fn set_clk_ref_selected(&mut self, val: u8)
The glitchless multiplexer does not switch instantaneously (to avoid glitches), so software should poll this register to wait for the switch to complete. This register contains one decoded bit for each of the clock sources enumerated in the CTRL SRC field. At most one of these bits will be set at any time, indicating that clock is currently present at the output of the glitchless mux. Whilst switching is in progress, this register may briefly show all-0s.
Trait Implementations§
Source§impl Clone for ClkRefSelected
impl Clone for ClkRefSelected
Source§fn clone(&self) -> ClkRefSelected
fn clone(&self) -> ClkRefSelected
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more