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