GNU Radio's IEEE802_11 Package
equalizer/base.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2015 Bastian Bloessl <bloessl@ccs-labs.org>
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef INCLUDED_IEEE802_11_EQUALIZER_BASE_H
19#define INCLUDED_IEEE802_11_EQUALIZER_BASE_H
20
21#include <gnuradio/digital/constellation.h>
22#include <gnuradio/gr_complex.h>
23
24namespace gr {
25namespace ieee802_11 {
26namespace equalizer {
27
28class base
29{
30public:
31 virtual ~base(){};
32 virtual void equalize(gr_complex* in,
33 int n,
34 gr_complex* symbols,
35 uint8_t* bits,
36 std::shared_ptr<gr::digital::constellation> mod) = 0;
37 virtual double get_snr() = 0;
38
39 static const gr_complex POLARITY[127];
40
41 std::vector<gr_complex> get_csi();
42
43protected:
44 static const gr_complex LONG[64];
45
46 gr_complex d_H[64];
47};
48
49} // namespace equalizer
50} /* namespace ieee802_11 */
51} /* namespace gr */
52
53#endif /* INCLUDED_IEEE802_11_EQUALIZER_BASE_H */
Definition equalizer/base.h:29
std::vector< gr_complex > get_csi()
virtual void equalize(gr_complex *in, int n, gr_complex *symbols, uint8_t *bits, std::shared_ptr< gr::digital::constellation > mod)=0
virtual ~base()
Definition equalizer/base.h:31
static const gr_complex LONG[64]
Definition equalizer/base.h:44
static const gr_complex POLARITY[127]
Definition equalizer/base.h:39
gr_complex d_H[64]
Definition equalizer/base.h:46
Definition equalizer/base.h:26
Definition chunks_to_symbols.h:24
Definition chunks_to_symbols.h:23