Struct p25::baseband::sync::SyncDetector
[−]
[src]
pub struct SyncDetector { /* fields omitted */ }
State machine that detects a peak power above an instantaneous threshold. Once the power goes above the threshold, further thresholds are ignored and power is tracked until it peaks.
Methods
impl SyncDetector
[src]
pub fn new() -> SyncDetector
[src]
Create a new SyncDetector
in the default state.
pub fn detect(&mut self, corrpow: f32, thresh: f32) -> bool
[src]
Consider the given power related to the given instantaneous power threshold. Return true
if the power peaked above threshold in the previous sample and false
otherwise.
Trait Implementations
impl Copy for SyncDetector
[src]
impl Clone for SyncDetector
[src]
fn clone(&self) -> SyncDetector
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more