pluto-sdr 0.1.1

HAL for ADALM-Pluto SDR
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use pluto_sdr::filter::Filter;

fn main() {
    let signal = vec![1., 4., -3., 5., 10., -19., -4., 10., -2., -1.];
    // coeff describe a 4 point moving average
    let lpf_coefficients = vec![0.25, 0.25, 0.25, 0.25];
    // create the low pass filter
    let lpf = Filter::new(lpf_coefficients.into());

    // filter the signal
    let filtered = lpf.filter_windowed(&signal);
    println!("{:?}", filtered);
}