MSP DSP Library
|
Parameters for Q15 sinusoid generation. More...
#include <DSPLib_utility.h>
Data Fields | |
uint16_t | length |
Length of the generated sinusoid, must be a multiple of two. | |
_q15 | amplitude |
Amplitude of the generated sinusoid. | |
_q15 | cosOmega |
_q15 | sinOmega |
Parameters for Q15 sinusoid generation.
_q15 msp_sinusoid_q15_params::cosOmega |
Q15 constant equal to cos(2*pi*frequency/fs) where fs is the sampling frequency and freq is the desired sinusoid frequency. For example a 200 Hz sinusoid with sampling frequency of 8192 would have a cosOmega constant equal to cos(2*pi*200/8192) = _Q15(0.988258) or 0x7E7F in hexadecimal.
_q15 msp_sinusoid_q15_params::sinOmega |
Q15 constant equal to sin(2*pi*frequency/fs) where fs is the sampling frequency and freq is the desired sinusoid frequency. For example a 200 Hz sinusoid with sampling frequency of 8192 would have a sinOmega constant equal to sin(2*pi*200/8192) = _Q15(0.152797) or 0x138F in hexadecimal.