|
ESP-IDF Firmware
Firmware architecture and call graph
|
Go to the source code of this file.
Functions | |
| esp_err_t | dsps_tone_gen_f32 (float *output, int len, float Ampl, float freq, float phase) |
| tone | |
| esp_err_t dsps_tone_gen_f32 | ( | float * | output, |
| int | len, | ||
| float | Ampl, | ||
| float | freq, | ||
| float | phase ) |
tone
The function generate a tone signal. x[i]=A*sin(2*PI*i + ph/180*PI) The implementation use ANSI C and could be compiled and run on any platform
| output | output array. |
| len | length of the input signal |
| Ampl | amplitude |
| freq | Naiquist frequency -1..1 |
| phase | phase in degree |
Definition at line 18 of file dsps_tone_gen.c.
References ESP_ERR_DSP_INVALID_PARAM, ESP_OK, and M_PI.