Cutoff frequency variable LPF by IIR 6th-order Butterworth filter for ST Nucleo F401RE.
Dependencies: UIT_IIR_Filter UIT_ACM1602NI UITDSP_ADDA mbed UIT_AQM1602
Diff: BilinearDesignLpfHpf/BilinearDesignLH.hpp
- Revision:
- 5:b291c4653eb9
- Parent:
- 0:a9412b9e85b7
diff -r 460f2285dd87 -r b291c4653eb9 BilinearDesignLpfHpf/BilinearDesignLH.hpp --- a/BilinearDesignLpfHpf/BilinearDesignLH.hpp Sat Nov 15 06:51:05 2014 +0000 +++ b/BilinearDesignLpfHpf/BilinearDesignLH.hpp Sun Dec 07 05:45:07 2014 +0000 @@ -14,14 +14,14 @@ { typedef complex<float> Complex; // define "Complex" - class BiliearDesign + class BilinearDesign { public: struct Coefs { float a1, a2, b1; }; enum Type { LPF, HPF }; // Constructor - BiliearDesign(int order, float fs, Type pb) + BilinearDesign(int order, float fs, Type pb) : PI_FS_(PI_/fs), ORDER_(order), PB_(pb) { sP_ = new Complex[order/2]; @@ -30,7 +30,7 @@ } // Destractor - ~BiliearDesign() + ~BilinearDesign() { delete[] sP_; delete[] zP_;