pub struct PhaseLockLoopUpdate {
pub applied: bool,
pub locked: bool,
pub rejected_outlier: bool,
pub freq_trim_mppb: i64,
pub phase_corr_ns: i64,
pub p_corr_ns: i64,
pub d_corr_ns: i64,
pub predicted_phase_ns: i64,
}Expand description
Result of PhaseLockLoop::update. The caller forms the output period from
freq_trim_mppb (added to the crystal estimate) and phase_corr_ns; the rest is for logging.
Fields§
§applied: boolWhether this edge was applied (false if invalid or rejected as an outlier).
locked: boolLock state used for this edge’s control decisions (lock attained on a prior edge).
rejected_outlier: boolWhether this edge was held as a post-lock outlier.
freq_trim_mppb: i64Integrated frequency trim (milli-ppb) to add to the crystal’s estimated offset.
phase_corr_ns: i64Immediate phase correction (ns) to subtract from this period (= p_corr_ns + d_corr_ns).
p_corr_ns: i64Proportional component of phase_corr_ns (ns).
d_corr_ns: i64Derivative component of phase_corr_ns (ns).
predicted_phase_ns: i64The Smith-predicted phase used as the control input this edge (ns).
Trait Implementations§
Source§impl Clone for PhaseLockLoopUpdate
impl Clone for PhaseLockLoopUpdate
Source§fn clone(&self) -> PhaseLockLoopUpdate
fn clone(&self) -> PhaseLockLoopUpdate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PhaseLockLoopUpdate
Source§impl Debug for PhaseLockLoopUpdate
impl Debug for PhaseLockLoopUpdate
impl Eq for PhaseLockLoopUpdate
Source§impl PartialEq for PhaseLockLoopUpdate
impl PartialEq for PhaseLockLoopUpdate
impl StructuralPartialEq for PhaseLockLoopUpdate
Auto Trait Implementations§
impl Freeze for PhaseLockLoopUpdate
impl RefUnwindSafe for PhaseLockLoopUpdate
impl Send for PhaseLockLoopUpdate
impl Sync for PhaseLockLoopUpdate
impl Unpin for PhaseLockLoopUpdate
impl UnsafeUnpin for PhaseLockLoopUpdate
impl UnwindSafe for PhaseLockLoopUpdate
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