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