Hi,
I am not use if this is the right place to post this topic, but I could not find an application specific or IQMath forum.
I am using the PMSM-application note from TI and the functions use the IQMath library, but whenever I use any of the IQMath functions I get a warning that the number is getting truncated.
see example below: (I simply want to convert 2 to its iq15 representation)
myStructure.somethingiq15 = _IQ15(2);
But when I do it like this I get no warnings:
myStructure.somethingiq15 = 2 >> 15;
Any thoughts?
Thanks