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