Struct demod_fm::FmDemod
[−]
[src]
pub struct FmDemod { /* fields omitted */ }
Demodulates an FM signal using a phase difference approximation.
Methods
impl FmDemod
[src]
fn new(deviation: u32, sample_rate: u32) -> FmDemod
Create a new FmDemod
with the given frequency deviation f∆ (Hz) and
sample rate fs (Hz).
The deviation must satisfy the Nyquist limit, f∆ ≤ fs / 2.
fn feed(&mut self, sample: Complex32) -> f32
Feed in an FM sample, producing the next sample in the demodulated signal.