|
ESP-IDF Firmware
Firmware architecture and call graph
|
#include "dsps_cplx_gen.h"Go to the source code of this file.
Functions | |
| esp_err_t | dsps_cplx_gen_ansi (cplx_sig_t *cplx_gen, void *output, int32_t len) |
| The function generates a complex signal. | |
| esp_err_t dsps_cplx_gen_ansi | ( | cplx_sig_t * | cplx_gen, |
| void * | output, | ||
| int32_t | len ) |
The function generates a complex signal.
the generated complex signal is in the form of two harmonics signals in either 16-bit signed fixed point or 32-bit floating point
x[i]= A*sin(step*i + ph/180*Pi) x[i+1]= B*cos(step*i + ph/180*Pi) where step = 2*Pi*frequency
dsps_cplx_gen_ansi() - The implementation uses ANSI C and could be compiled and run on any platform dsps_cplx_gen_ae32() - Is targetted for Xtensa cores
| cplx_gen | pointer to the generator structure |
| output | output array (length of len*2), data type is void so both (S16_FIXED, F32_FLOAT) types could be used |
| len | length of the output signal |
Definition at line 9 of file dsps_cplx_gen.c.
References cplx_sig_s::d_type, ESP_OK, cplx_sig_s::freq, cplx_sig_s::lut, cplx_sig_s::lut_len, cplx_sig_s::phase, and S16_FIXED.