Content originally posted in LPCWare by miccio on Fri Oct 16 11:16:37 MST 2015
Hello everyone,
My latest project requires some help from the DSP libraries (mostly for fast trigonometric functions and vector math). However, all of the data I acquire is in the form of int16_t.
How can this be converted into the q31_t used by the library functions (which is actually an int32_t)?
Also, once my variables are converted in q31_t, how can I perform normal math? Wikipedia explanation is pretty straightforward but very verbose nevertheless, so I wonder if the library had some helper functions.
By the way, I'm using an LPC1549 (Cortex M3 core).
Thanks in advance and have a nice weekend! :)