fun_ofdm
1.0
802.11a Physical Layer for USRP
Main Page
Namespaces
Classes
Files
File List
File Members
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
47
circular_accumulator<std::complex<double>
>
m_corr_acc
;
48
52
circular_accumulator<double>
m_power_acc
;
53
57
int
m_plateau_length
;
58
63
bool
m_plateau_flag
;
64
69
std::vector<std::complex<double> >
m_carryover
;
70
};
71
}
72
73
74
75
#endif // FRAME_DETECTOR_H
src
frame_detector.h
Generated on Mon Oct 20 2014 10:26:27 for fun_ofdm by
1.8.4