I want to use the function dsp_filters_fir.l(lib dsp)
One of the parameters is a int32_t array which comtains the filter coefficients. The coefficients have to be represented in Q fixed- point format. ( like this : Q28(0.5))
I tried to generate some values and then add them in the int32_t array by using the Q tag. By running the code, i noticed that the programms doesn't consider the modifed array. Note that i fist define the int32_t array as empyty and then i fill it .
Code: Select all
int32_t array[length];
float coeffs[length];
for (int i =0; i<=length; i++)
{
array[i]=Q15(coeff[i])
}
dsp_filters_fir(.......) ;
Does somebody know where the problem is and how i can fix it ? I'm not sure if it has something to do with the conversion or seómething else
Thank you
Regards
Tom