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
receiver_chain.h
Go to the documentation of this file.
1
10
#ifndef RECEIVER_CHAIN_H
11
#define RECEIVER_CHAIN_H
12
13
#include <thread>
14
#include <semaphore.h>
15
16
#include "
fft_symbols.h
"
17
#include "
channel_est.h
"
18
#include "
phase_tracker.h
"
19
#include "
frame_decoder.h
"
20
#include "
block.h
"
21
#include "
tagged_vector.h
"
22
#include "
frame_detector.h
"
23
#include "
timing_sync.h
"
24
25
namespace
fun
26
{
27
40
class
receiver_chain
41
{
42
public
:
43
47
receiver_chain
();
48
56
std::vector<std::vector<unsigned char> >
process_samples
(std::vector<std::complex<double> > samples);
57
58
private
:
59
60
/**********
61
* Blocks *
62
**********/
63
64
frame_detector
*
m_frame_detector
;
65
timing_sync
*
m_timing_sync
;
66
fft_symbols
*
m_fft_symbols
;
67
channel_est
*
m_channel_est
;
68
phase_tracker
*
m_phase_tracker
;
69
frame_decoder
*
m_frame_decoder
;
70
71
/***********************************
72
* Scheduler Variables and Methods *
73
***********************************/
74
79
void
add_block
(
fun::block_base
*
block
);
80
86
void
run_block
(
int
index,
fun::block_base
*
block
);
87
88
89
std::vector<std::thread>
m_threads
;
90
91
92
std::vector<sem_t>
m_wake_sems
;
93
94
95
std::vector<sem_t>
m_done_sems
;
96
};
97
98
}
99
100
#endif // RECEIVER_CHAIN_H
src
receiver_chain.h
Generated on Mon Oct 20 2014 10:26:27 for fun_ofdm by
1.8.4