fun_ofdm  1.0
802.11a Physical Layer for USRP
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
frame_detector.h
Go to the documentation of this file.
1 
8 #ifndef FRAME_DETECTOR_H
9 #define FRAME_DETECTOR_H
10 
11 //Tweakable Parameters
12 #define PLATEAU_THRESHOLD 0.9
13 #define STS_PLATEAU_LENGTH 16
14 
15 #define STS_LENGTH 16
16 
17 #include <complex>
18 
19 #include "block.h"
20 #include "tagged_vector.h"
21 #include "circular_accumulator.h"
22 
23 namespace fun
24 {
34  class frame_detector : public fun::block<std::complex<double>, tagged_sample>
35  {
36  public:
37 
38  frame_detector();
39 
40  virtual void work();
41 
42  private:
43 
48 
53 
58 
64 
69  std::vector<std::complex<double> > m_carryover;
70  };
71 }
72 
73 
74 
75 #endif // FRAME_DETECTOR_H