fun_ofdm  1.0
802.11a Physical Layer for USRP
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
symbol_mapper.h
Go to the documentation of this file.
1 
9 #ifndef SYMBOL_MAPPER_H
10 #define SYMBOL_MAPPER_H
11 
12 #include <vector>
13 #include <complex>
14 
15 namespace fun
16 {
25  {
26 
27  public:
28 
32  symbol_mapper();
33 
39  std::vector<std::complex<double> > map(std::vector<std::complex<double> > data_samples);
40 
46  std::vector<std::complex<double> > demap(std::vector<std::complex<double> > samples);
47 
52  std::vector<unsigned char> get_active_map();
53 
54  private:
55 
56  static const std::vector<unsigned char> m_active_map;
57 
58  static const double POLARITY[127];
59 
60  static const std::complex<double> PILOTS[4];
61 
63 
65 
66  };
67 }
68 
69 
70 #endif // SYMBOL_MAPPER_H