/* * Filter Coefficients (C Source) generated by the Filter Design and Analysis Tool * Generated by MATLAB(R) 9.12 and DSP System Toolbox 9.14. * Generated on: 30-May-2022 14:58:41 */ /* * Discrete-Time IIR Filter (real) * ------------------------------- * Filter Structure : Direct-Form II * Numerator Length : 4 * Denominator Length : 4 * Stable : Yes * Linear Phase : No * Arithmetic : fixed * Numerator : s16,18 -> [-1.250000e-01 1.250000e-01) * Denominator : s16,14 -> [-2 2) * Input : s16,16 -> [-5.000000e-01 5.000000e-01) * Output : s16,15 -> [-1 1) * State : s16,15 -> [-1 1) * Numerator Prod : s32,33 -> [-2.500000e-01 2.500000e-01) * Denominator Prod : s32,29 -> [-4 4) * Numerator Accum : s40,33 -> [-64 64) * Denominator Accum : s40,29 -> [-1024 1024) * Round Mode : convergent * Overflow Mode : wrap * Cast Before Sum : true */ /* General type conversion for MATLAB generated C-code */ #include "tmwtypes.h" /* * Expected path to tmwtypes.h * /home/mreenen/.local/MATLAB/R2022a/extern/include/tmwtypes.h */ const int NL = 4; const int16_T NUM[4] = { 519, 1558, 1558, 519 }; const int DL = 4; const int16_T DEN[4] = { 16384, -23905, 14915, -3241 };