25#include <zephyr/types.h>
int wave_gen_generate_value(uint32_t time, const struct wave_gen_param *params, double *out_val)
Generate wave value.
wave_gen_type
Available generated wave types.
Definition: wave_gen.h:29
@ WAVE_GEN_TYPE_SQUARE
Definition: wave_gen.h:32
@ WAVE_GEN_TYPE_TRIANGLE
Definition: wave_gen.h:31
@ WAVE_GEN_TYPE_COUNT
Definition: wave_gen.h:35
@ WAVE_GEN_TYPE_SINE
Definition: wave_gen.h:30
@ WAVE_GEN_TYPE_NONE
Definition: wave_gen.h:33
double offset
Definition: wave_gen.h:48
uint32_t period_ms
Definition: wave_gen.h:45
enum wave_gen_type type
Definition: wave_gen.h:42
double noise
Definition: wave_gen.h:54
double amplitude
Definition: wave_gen.h:51
Generated wave parameters.
Definition: wave_gen.h:40