#[repr(transparent)]pub struct Cs(pub u32);
Expand description
Control and Status GENERAL CONSTRAINTS: Reference clock frequency min=5MHz, max=800MHz Feedback divider min=16, max=320 VCO frequency min=750MHz, max=1600MHz
Tuple Fields§
§0: u32
Implementations§
source§impl Cs
impl Cs
sourcepub const fn refdiv(&self) -> u8
pub const fn refdiv(&self) -> u8
Divides the PLL input reference clock. Behaviour is undefined for div=0. PLL output will be unpredictable during refdiv changes, wait for lock=1 before using it.
sourcepub fn set_refdiv(&mut self, val: u8)
pub fn set_refdiv(&mut self, val: u8)
Divides the PLL input reference clock. Behaviour is undefined for div=0. PLL output will be unpredictable during refdiv changes, wait for lock=1 before using it.
sourcepub const fn bypass(&self) -> bool
pub const fn bypass(&self) -> bool
Passes the reference clock to the output instead of the divided VCO. The VCO continues to run so the user can switch between the reference clock and the divided VCO but the output will glitch when doing so.
sourcepub fn set_bypass(&mut self, val: bool)
pub fn set_bypass(&mut self, val: bool)
Passes the reference clock to the output instead of the divided VCO. The VCO continues to run so the user can switch between the reference clock and the divided VCO but the output will glitch when doing so.
sourcepub const fn lock_n(&self) -> bool
pub const fn lock_n(&self) -> bool
PLL is not locked Ideally this is cleared when PLL lock is seen and this should never normally be set
sourcepub fn set_lock_n(&mut self, val: bool)
pub fn set_lock_n(&mut self, val: bool)
PLL is not locked Ideally this is cleared when PLL lock is seen and this should never normally be set
Trait Implementations§
impl Copy for Cs
impl Eq for Cs
impl StructuralPartialEq for Cs
Auto Trait Implementations§
impl Freeze for Cs
impl RefUnwindSafe for Cs
impl Send for Cs
impl Sync for Cs
impl Unpin for Cs
impl UnwindSafe for Cs
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
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)
clone_to_uninit
)