Radio Control  Control Software and GUI for the Panoradio SDR, by DC9ST 2016
fft_avg_complex.h
1 #ifndef FFT_AVG_COMPLEX_H
2 #define FFT_AVG_COMPLEX_H
3 
4 #include "fftw_base.h"
5 
7 class fft_avg_complex : public fftw_base
8 {
9  int num_ffts_; // number of added ffts
10  double *fft_sum_; // holds accumulated fft values
11  double *fft_out_temp_; // holds temporary fft output
12 
13 public:
17  fft_avg_complex(int n, t_fft_window fft_window);
18 
21 
25  void add_fft(double data_in_real[], double data_in_imag[]);
26 
28  void reset();
29 
32  void get_avg_fft(double output_avg_fft_mag[]);
33 };
34 
35 #endif // FFT_AVG_COMPLEX_H
~fft_avg_complex()
destructor
Definition: fft_avg_complex.cpp:13
FFT Class for averaging over multiple FFTs with complex time domain input values. ...
Definition: fft_avg_complex.h:7
Base class for FFT for time domain voltage input data from an ADC (wrapped FFTW)
Definition: fftw_base.h:9
t_fft_window
window types
Definition: fftw_base.h:14
void add_fft(double data_in_real[], double data_in_imag[])
performs a single FFT and stores the result internally
Definition: fft_avg_complex.cpp:20
void get_avg_fft(double output_avg_fft_mag[])
read averaged FFT bins of power spectrum in dBm, including windowing and CPG correction ...
Definition: fft_avg_complex.cpp:40
fft_avg_complex(int n, t_fft_window fft_window)
constructor, allocated memory and calls base class constructor
Definition: fft_avg_complex.cpp:5
void reset()
resets the module, call to restart averaging
Definition: fft_avg_complex.cpp:32