pub struct RPLLConfig {
pub dt2: u8,
pub shift_frequency: u8,
pub shift_phase: u8,
}Expand description
RPLL configuration
Fields§
§dt2: u81 << dt2 is the counter rate to update() rate ratio
shift_frequency: u8Frequency lock settling time.
1 << shift_frequency is
frequency lock settling time in counter periods. The settling time must be larger
than the signal period to lock to.
shift_phase: u8Phase lock settling time.
Usually one less than shift_frequency (see there).
Trait Implementations§
Source§impl Clone for RPLLConfig
impl Clone for RPLLConfig
Source§fn clone(&self) -> RPLLConfig
fn clone(&self) -> RPLLConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RPLLConfig
impl Debug for RPLLConfig
Source§impl Default for RPLLConfig
impl Default for RPLLConfig
Source§fn default() -> RPLLConfig
fn default() -> RPLLConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RPLLConfig
impl<'de> Deserialize<'de> for RPLLConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for RPLLConfig
impl Serialize for RPLLConfig
Source§impl SplitProcess<Option<Wrapping<i32>>, Accu<Wrapping<i32>>, RPLL> for RPLLConfig
impl SplitProcess<Option<Wrapping<i32>>, Accu<Wrapping<i32>>, RPLL> for RPLLConfig
Source§fn process(&self, state: &mut RPLL, x: Option<W<i32>>) -> Accu<W<i32>> ⓘ
fn process(&self, state: &mut RPLL, x: Option<W<i32>>) -> Accu<W<i32>> ⓘ
Advance the RPLL and optionally supply a new timestamp.
- input: Optional new timestamp.
There can be at most one timestamp per
update()cycle (1 << dt2 counter cycles).
Returns: A tuple containing the current phase (wrapping at the i32 boundary, pi) and frequency.
Auto Trait Implementations§
impl Freeze for RPLLConfig
impl RefUnwindSafe for RPLLConfig
impl Send for RPLLConfig
impl Sync for RPLLConfig
impl Unpin for RPLLConfig
impl UnwindSafe for RPLLConfig
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