#[repr(transparent)]pub struct Phase(pub u32);
Expand description
Controls the phase shifted output
Tuple Fields§
§0: u32
Implementations§
source§impl Phase
impl Phase
sourcepub const fn shift(&self) -> u8
pub const fn shift(&self) -> u8
phase shift the phase-shifted output by SHIFT input clocks this can be changed on-the-fly must be set to 0 before setting div=1
sourcepub fn set_shift(&mut self, val: u8)
pub fn set_shift(&mut self, val: u8)
phase shift the phase-shifted output by SHIFT input clocks this can be changed on-the-fly must be set to 0 before setting div=1
sourcepub fn set_flip(&mut self, val: bool)
pub fn set_flip(&mut self, val: bool)
invert the phase-shifted output this is ignored when div=1
sourcepub const fn enable(&self) -> bool
pub const fn enable(&self) -> bool
enable the phase-shifted output this can be changed on-the-fly
sourcepub fn set_enable(&mut self, val: bool)
pub fn set_enable(&mut self, val: bool)
enable the phase-shifted output this can be changed on-the-fly
sourcepub fn set_passwd(&mut self, val: u8)
pub fn set_passwd(&mut self, val: u8)
set to 0xaa any other value enables the output with shift=0
Trait Implementations§
impl Copy for Phase
impl Eq for Phase
impl StructuralPartialEq for Phase
Auto Trait Implementations§
impl Freeze for Phase
impl RefUnwindSafe for Phase
impl Send for Phase
impl Sync for Phase
impl Unpin for Phase
impl UnwindSafe for Phase
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
)