/* * 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: 25-May-2023 13:46:35 */ /* * Discrete-Time IIR Filter (real) * ------------------------------- * Filter Structure : Direct-Form I * Numerator Length : 5 * Denominator Length : 5 * Stable : Yes * Linear Phase : No * Arithmetic : fixed * Numerator : s16,12 -> [-8 8) * Denominator : s16,12 -> [-8 8) * Input : s16,15 -> [-1 1) * Output : s16,8 -> [-128 128) * Numerator Prod : s32,27 -> [-16 16) * Denominator Prod : s32,20 -> [-2048 2048) * Numerator Accum : s40,27 -> [-4096 4096) * Denominator Accum : s40,20 -> [-524288 524288) * 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 * C:\Program Files\MATLAB\R2022a\extern\include\tmwtypes.h */ const int NL = 5; const int16_T NUM[5] = { 3804, -15048, 22490, -15048, 3804 }; const int DL = 5; const int16_T DEN[5] = { 4096, -15605, 22470, -14491, 3532 };