From 43342cef91eaaca5dbbac0b0e6ec4993af4ac8de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Sun, 31 Jan 2021 18:21:47 +0100 Subject: [PATCH] rpll: docs --- dsp/src/rpll.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dsp/src/rpll.rs b/dsp/src/rpll.rs index 9dee2a3..0006831 100644 --- a/dsp/src/rpll.rs +++ b/dsp/src/rpll.rs @@ -3,6 +3,8 @@ /// Consumes noisy, quantized timestamps of a reference signal and reconstructs /// the phase and frequency of the update() invocations with respect to (and in units of /// 1 << 32 of) that reference. +/// In other words, `update()` rate ralative to reference frequency, +/// `u32::MAX` corresponding to both being equal. #[derive(Copy, Clone, Default)] pub struct RPLL { dt2: u8, // 1 << dt2 is the counter rate to update() rate ratio @@ -40,7 +42,7 @@ impl RPLL { /// /// Returns: /// A tuple containing the current phase (wrapping at the i32 boundary, pi) and - /// frequency (wrapping at the i32 boundary, Nyquist) estimate. + /// frequency. pub fn update( &mut self, input: Option, @@ -195,7 +197,7 @@ mod test { limits[i] ); } - println!(""); + println!(); } }