Struct rp_pac::clocks::regs::ClkSysSelected
source · #[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 moresource§impl Default for ClkSysSelected
impl Default for ClkSysSelected
source§fn default() -> ClkSysSelected
fn default() -> ClkSysSelected
source§impl PartialEq for ClkSysSelected
impl PartialEq for ClkSysSelected
impl Copy for ClkSysSelected
impl Eq for ClkSysSelected
impl StructuralPartialEq for ClkSysSelected
Auto Trait Implementations§
impl Freeze for ClkSysSelected
impl RefUnwindSafe for ClkSysSelected
impl Send for ClkSysSelected
impl Sync for ClkSysSelected
impl Unpin for ClkSysSelected
impl UnwindSafe for ClkSysSelected
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)