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