Struct rp_pac::clocks::regs::ClkRefSelected
source · #[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 moresource§impl Default for ClkRefSelected
impl Default for ClkRefSelected
source§fn default() -> ClkRefSelected
fn default() -> ClkRefSelected
source§impl PartialEq for ClkRefSelected
impl PartialEq for ClkRefSelected
impl Copy for ClkRefSelected
impl Eq for ClkRefSelected
impl StructuralPartialEq for ClkRefSelected
Auto Trait Implementations§
impl Freeze for ClkRefSelected
impl RefUnwindSafe for ClkRefSelected
impl Send for ClkRefSelected
impl Sync for ClkRefSelected
impl Unpin for ClkRefSelected
impl UnwindSafe for ClkRefSelected
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
)