Struct rp_pac::clocks::regs::ClkRefCtrl
source · #[repr(transparent)]pub struct ClkRefCtrl(pub u32);
Expand description
Clock control, can be changed on-the-fly (except for auxsrc)
Tuple Fields§
§0: u32
Implementations§
source§impl ClkRefCtrl
impl ClkRefCtrl
sourcepub const fn src(&self) -> ClkRefCtrlSrc
pub const fn src(&self) -> ClkRefCtrlSrc
Selects the clock source glitchlessly, can be changed on-the-fly
sourcepub fn set_src(&mut self, val: ClkRefCtrlSrc)
pub fn set_src(&mut self, val: ClkRefCtrlSrc)
Selects the clock source glitchlessly, can be changed on-the-fly
sourcepub const fn auxsrc(&self) -> ClkRefCtrlAuxsrc
pub const fn auxsrc(&self) -> ClkRefCtrlAuxsrc
Selects the auxiliary clock source, will glitch when switching
sourcepub fn set_auxsrc(&mut self, val: ClkRefCtrlAuxsrc)
pub fn set_auxsrc(&mut self, val: ClkRefCtrlAuxsrc)
Selects the auxiliary clock source, will glitch when switching
Trait Implementations§
source§impl Clone for ClkRefCtrl
impl Clone for ClkRefCtrl
source§fn clone(&self) -> ClkRefCtrl
fn clone(&self) -> ClkRefCtrl
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for ClkRefCtrl
impl Default for ClkRefCtrl
source§fn default() -> ClkRefCtrl
fn default() -> ClkRefCtrl
Returns the “default value” for a type. Read more
source§impl PartialEq for ClkRefCtrl
impl PartialEq for ClkRefCtrl
impl Copy for ClkRefCtrl
impl Eq for ClkRefCtrl
impl StructuralPartialEq for ClkRefCtrl
Auto Trait Implementations§
impl Freeze for ClkRefCtrl
impl RefUnwindSafe for ClkRefCtrl
impl Send for ClkRefCtrl
impl Sync for ClkRefCtrl
impl Unpin for ClkRefCtrl
impl UnwindSafe for ClkRefCtrl
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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)