Dear all I have sampled some data using a 16bit ADC the data is in short(16-bit int) format, now I want to use the Cortex CMSIS DSP library to do some calculations like calculating rms values.I have used the arm_rms_q15 function, but the input to this function is in q15 format. How can I convert the short and other int types to the data that has been used in this library? Any ideas are welcome.
You mean I should divide all the adc data by 32768?
No.
Suppose I have one short variable(min=-32768 max=32767)
I'm reasonably certain your ADC doesn't actually produce values in that range, now does it?
So what's the actual data range? How do you think that should be mapped into the actual range of the q15_t type?
The ADC is AD7606 and it can produce data in that range!