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