q1.15 Format
I have 1024 integer numbers in an array that are between 0 and 4096. Now I'm trying to convert these array values to Q1.15 format. These should then be between -1 and +1. With my attempt, I don't achieve any negative values, all of them are just positive. Thanks for the help.
float32_t fir_in_arm [1024],fir_out_arm [1024],fir_state [1089-1];
int16_t fir_in_temp [1024]; // with float32_t also tried and no success
float32_t fir_in_temp_gleit [1024];
for (int i = 0; i<= adcBufferSize; i++)
{
adc_buffer_float[i] = (float32_t)adc_buffer [i];
fir_in_temp_gleit[i] = (adc_buffer_float[i])/32767;
fir_in_temp [i] = fir_in_temp_gleit[i]*32768;
}
