Struct rp_pac::clocks::regs::ClkSysCtrl
source · #[repr(transparent)]pub struct ClkSysCtrl(pub u32);
Expand description
Clock control, can be changed on-the-fly (except for auxsrc)
Tuple Fields§
§0: u32
Implementations§
source§impl ClkSysCtrl
impl ClkSysCtrl
sourcepub const fn src(&self) -> ClkSysCtrlSrc
pub const fn src(&self) -> ClkSysCtrlSrc
Selects the clock source glitchlessly, can be changed on-the-fly
sourcepub fn set_src(&mut self, val: ClkSysCtrlSrc)
pub fn set_src(&mut self, val: ClkSysCtrlSrc)
Selects the clock source glitchlessly, can be changed on-the-fly
sourcepub const fn auxsrc(&self) -> ClkSysCtrlAuxsrc
pub const fn auxsrc(&self) -> ClkSysCtrlAuxsrc
Selects the auxiliary clock source, will glitch when switching
sourcepub fn set_auxsrc(&mut self, val: ClkSysCtrlAuxsrc)
pub fn set_auxsrc(&mut self, val: ClkSysCtrlAuxsrc)
Selects the auxiliary clock source, will glitch when switching
Trait Implementations§
source§impl Clone for ClkSysCtrl
impl Clone for ClkSysCtrl
source§fn clone(&self) -> ClkSysCtrl
fn clone(&self) -> ClkSysCtrl
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 ClkSysCtrl
impl Default for ClkSysCtrl
source§fn default() -> ClkSysCtrl
fn default() -> ClkSysCtrl
Returns the “default value” for a type. Read more
source§impl PartialEq for ClkSysCtrl
impl PartialEq for ClkSysCtrl
impl Copy for ClkSysCtrl
impl Eq for ClkSysCtrl
impl StructuralPartialEq for ClkSysCtrl
Auto Trait Implementations§
impl Freeze for ClkSysCtrl
impl RefUnwindSafe for ClkSysCtrl
impl Send for ClkSysCtrl
impl Sync for ClkSysCtrl
impl Unpin for ClkSysCtrl
impl UnwindSafe for ClkSysCtrl
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
)