#[repr(transparent)]pub struct ClkGpout0ctrl(pub u32);
Expand description
Clock control, can be changed on-the-fly (except for auxsrc)
Tuple Fields§
§0: u32
Implementations§
Source§impl ClkGpout0ctrl
impl ClkGpout0ctrl
Sourcepub const fn auxsrc(&self) -> ClkGpout0ctrlAuxsrc
pub const fn auxsrc(&self) -> ClkGpout0ctrlAuxsrc
Selects the auxiliary clock source, will glitch when switching
Sourcepub fn set_auxsrc(&mut self, val: ClkGpout0ctrlAuxsrc)
pub fn set_auxsrc(&mut self, val: ClkGpout0ctrlAuxsrc)
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 ClkGpout0ctrl
impl Clone for ClkGpout0ctrl
Source§fn clone(&self) -> ClkGpout0ctrl
fn clone(&self) -> ClkGpout0ctrl
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for ClkGpout0ctrl
impl Default for ClkGpout0ctrl
Source§fn default() -> ClkGpout0ctrl
fn default() -> ClkGpout0ctrl
Returns the “default value” for a type. Read more
Source§impl PartialEq for ClkGpout0ctrl
impl PartialEq for ClkGpout0ctrl
impl Copy for ClkGpout0ctrl
impl Eq for ClkGpout0ctrl
impl StructuralPartialEq for ClkGpout0ctrl
Auto Trait Implementations§
impl Freeze for ClkGpout0ctrl
impl RefUnwindSafe for ClkGpout0ctrl
impl Send for ClkGpout0ctrl
impl Sync for ClkGpout0ctrl
impl Unpin for ClkGpout0ctrl
impl UnwindSafe for ClkGpout0ctrl
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