Radio Control  Control Software and GUI for the Panoradio SDR, by DC9ST 2016
fft_avg_real.h
1 #ifndef FFT_AVG_REAL_H
2 #define FFT_AVG_REAL_H
3 
4 #include "fftw_base.h"
5 
7 class fft_avg_real : 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_real(int n, t_fft_window fft_window);
18 
20  ~fft_avg_real();
21 
24  void add_fft(double data_in[]);
25 
27  void reset();
28 
31  void get_avg_fft(double output_avg_fft_mag[]);
32 
33 };
34 
35 #endif // FFT_AVG_REAL_H
void add_fft(double data_in[])
performs a single FFT and stores the result internally
Definition: fft_avg_real.cpp:20
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 reset()
resets the module, call to restart averaging
Definition: fft_avg_real.cpp:31
~fft_avg_real()
destructor
Definition: fft_avg_real.cpp:13
FFT Class for averaging over multiple FFTs with real time domain input values.
Definition: fft_avg_real.h:7
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_real.cpp:39
fft_avg_real(int n, t_fft_window fft_window)
constructor, allocated memory and calls base class constructor
Definition: fft_avg_real.cpp:5