Struct rp_pac::clocks::regs::ClkHstxCtrl
source · #[repr(transparent)]pub struct ClkHstxCtrl(pub u32);
Expand description
Clock control, can be changed on-the-fly (except for auxsrc)
Tuple Fields§
§0: u32
Implementations§
source§impl ClkHstxCtrl
impl ClkHstxCtrl
sourcepub const fn auxsrc(&self) -> ClkHstxCtrlAuxsrc
pub const fn auxsrc(&self) -> ClkHstxCtrlAuxsrc
Selects the auxiliary clock source, will glitch when switching
sourcepub fn set_auxsrc(&mut self, val: ClkHstxCtrlAuxsrc)
pub fn set_auxsrc(&mut self, val: ClkHstxCtrlAuxsrc)
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 const fn phase(&self) -> u8
pub const fn phase(&self) -> u8
This delays the enable signal by up to 3 cycles of the input clock This must be set before the clock is enabled to have any effect
sourcepub fn set_phase(&mut self, val: u8)
pub fn set_phase(&mut self, val: u8)
This delays the enable signal by up to 3 cycles of the input clock This must be set before the clock is enabled to have any effect
sourcepub const fn nudge(&self) -> bool
pub const fn nudge(&self) -> bool
An edge on this signal shifts the phase of the output by 1 cycle of the input clock This can be done at any time
sourcepub fn set_nudge(&mut self, val: bool)
pub fn set_nudge(&mut self, val: bool)
An edge on this signal shifts the phase of the output by 1 cycle of the input clock This can be done at any time
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 ClkHstxCtrl
impl Clone for ClkHstxCtrl
source§fn clone(&self) -> ClkHstxCtrl
fn clone(&self) -> ClkHstxCtrl
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ClkHstxCtrl
impl Default for ClkHstxCtrl
source§fn default() -> ClkHstxCtrl
fn default() -> ClkHstxCtrl
source§impl PartialEq for ClkHstxCtrl
impl PartialEq for ClkHstxCtrl
impl Copy for ClkHstxCtrl
impl Eq for ClkHstxCtrl
impl StructuralPartialEq for ClkHstxCtrl
Auto Trait Implementations§
impl Freeze for ClkHstxCtrl
impl RefUnwindSafe for ClkHstxCtrl
impl Send for ClkHstxCtrl
impl Sync for ClkHstxCtrl
impl Unpin for ClkHstxCtrl
impl UnwindSafe for ClkHstxCtrl
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
)