Hallo,
I'm trying to cast an _IQ value (my global is _IQ24) to int16.
My cast for an example :
_iq a=_IQ(1.0)
int16_t b=0;
b = (int16_t)_IQtoQ15(a);
However, for value of 1 and -1 the cast return the same value...
Am I doing something wrong ?
Thanks
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hallo,
I'm trying to cast an _IQ value (my global is _IQ24) to int16.
My cast for an example :
_iq a=_IQ(1.0)
int16_t b=0;
b = (int16_t)_IQtoQ15(a);
However, for value of 1 and -1 the cast return the same value...
Am I doing something wrong ?
Thanks