#[repr(transparent)]pub struct ClkSysSelected(pub u32);
Expand description
Indicates which src is currently selected (one-hot)
Tuple Fields§
§0: u32
Implementations§
Source§impl ClkSysSelected
impl ClkSysSelected
Sourcepub const fn clk_sys_selected(&self) -> u8
pub const fn clk_sys_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_sys_selected(&mut self, val: u8)
pub fn set_clk_sys_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 ClkSysSelected
impl Clone for ClkSysSelected
Source§fn clone(&self) -> ClkSysSelected
fn clone(&self) -> ClkSysSelected
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more