#[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 const fn kill(&self) -> bool
pub const fn kill(&self) -> bool
Asynchronously kills the clock generator, enable must be set low before deasserting kill
Sourcepub fn set_kill(&mut self, val: bool)
pub fn set_kill(&mut self, val: bool)
Asynchronously kills the clock generator, enable must be set low before deasserting kill
Sourcepub fn set_enable(&mut self, val: bool)
pub fn set_enable(&mut self, val: bool)
Starts and stops the clock generator cleanly
Sourcepub fn set_enabled(&mut self, val: bool)
pub fn set_enabled(&mut self, val: bool)
clock generator is enabled
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 Debug for ClkPeriCtrl
impl Debug for ClkPeriCtrl
Source§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