fun_ofdm  1.0
802.11a Physical Layer for USRP
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
fft.h
Go to the documentation of this file.
1 
8 #ifndef FFT_H
9 #define FFT_H
10 
11 #include <complex>
12 #include <fftw3.h>
13 #include <vector>
14 
15 namespace fun
16 {
24  class fft
25  {
26  public:
27 
28 
33  fft(int fft_length);
34 
40  void forward(std::complex<double> data[64]);
41 
48  void inverse(std::vector<std::complex<double> > & data);
49 
50  private:
51 
55  static const int fft_map[64];
56 
62 
66  fftw_complex * m_fftw_in_forward;
67 
71  fftw_complex * m_fftw_out_forward;
72 
76  fftw_complex * m_fftw_in_inverse;
77 
81  fftw_complex * m_fftw_out_inverse;
82 
87 
92  };
93 }
94 
95 
96 #endif // FFT_H