86 lines
1.9 KiB
C
86 lines
1.9 KiB
C
/*
|
|
* 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:32:39
|
|
*/
|
|
|
|
/*
|
|
* Discrete-Time IIR Filter (real)
|
|
* -------------------------------
|
|
* Filter Structure : Direct-Form I, Second-Order Sections
|
|
* Number of Sections : 3
|
|
* Stable : Yes
|
|
* Linear Phase : No
|
|
* Arithmetic : fixed
|
|
* Numerator : s16,14 -> [-2 2)
|
|
* Denominator : s16,14 -> [-2 2)
|
|
* Scale Values : s16,15 -> [-1 1)
|
|
* Input : s16,15 -> [-1 1)
|
|
* Output : s16,11 -> [-16 16)
|
|
* Numerator State : s16,15 -> [-1 1)
|
|
* Denominator State : s16,15 -> [-1 1)
|
|
* Numerator Prod : s32,29 -> [-4 4)
|
|
* Denominator Prod : s32,29 -> [-4 4)
|
|
* Numerator Accum : s40,29 -> [-1024 1024)
|
|
* 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
|
|
* C:\Program Files\MATLAB\R2022a\extern\include\tmwtypes.h
|
|
*/
|
|
#define MWSPT_NSEC 7
|
|
const int NL[MWSPT_NSEC] = { 1,3,1,3,1,3,1 };
|
|
const int16_T NUM[MWSPT_NSEC][3] = {
|
|
{
|
|
15950, 0, 0
|
|
},
|
|
{
|
|
16384, -32409, 16384
|
|
},
|
|
{
|
|
15950, 0, 0
|
|
},
|
|
{
|
|
16384, -32409, 16384
|
|
},
|
|
{
|
|
15568, 0, 0
|
|
},
|
|
{
|
|
16384, -32409, 16384
|
|
},
|
|
{
|
|
16384, 0, 0
|
|
}
|
|
};
|
|
const int DL[MWSPT_NSEC] = { 1,3,1,3,1,3,1 };
|
|
const int16_T DEN[MWSPT_NSEC][3] = {
|
|
{
|
|
16384, 0, 0
|
|
},
|
|
{
|
|
16384, -31056, 15311
|
|
},
|
|
{
|
|
16384, 0, 0
|
|
},
|
|
{
|
|
16384, -31983, 15790
|
|
},
|
|
{
|
|
16384, 0, 0
|
|
},
|
|
{
|
|
16384, -30795, 14752
|
|
},
|
|
{
|
|
16384, 0, 0
|
|
}
|
|
};
|