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.
Now I cast the buffer to float so I can use the float functions.
And by doing that, you demonstrate that you really didn't heed any of the advice you've been given. You also cast significant doubt on whether you even tried to understand what you're doing.
but the answer is wrong!?
No, it's not. The problem is that you didn't ask the question you thought you were.
I wanted to use q15 version.
Then you better learn what q15 is, so you'll have a chance to use it correctly.