Go to the source code of this file.
Macros | |
#define | PI 3.14159265358979 |
#define | TWOPI 6.28318530717959 |
Functions | |
float | step_sinwave (float *sig_gen, float freqHz, float amplitude, float periodSec) |
Initialize signal generator. More... | |
#define PI 3.14159265358979 |
Definition at line 5 of file sig_gen.cpp.
#define TWOPI 6.28318530717959 |
Definition at line 6 of file sig_gen.cpp.
float step_sinwave | ( | float * | sig_gen, |
float | freqHz, | ||
float | amplitude, | ||
float | periodSec | ||
) |
Initialize signal generator.
param float loopPeriodSec Timestep interval in seconds param float freqHz Frequency of output sin wave param float amplitude Amplitude (peak to center/mean) of output sin wave
Step the signal generator output
Definition at line 20 of file sig_gen.cpp.