1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
/*
* Copyright 2020 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
*/
/***********************************************************************************/
/* This file is automatically generated using bindtool and can be manually edited */
/* The following lines can be configured to regenerate this file during cmake */
/* If manual edits are made, the following tags should be modified accordingly. */
/* BINDTOOL_GEN_AUTOMATIC(0) */
/* BINDTOOL_USE_PYGCCXML(0) */
/* BINDTOOL_HEADER_FILE(ofdm_equalizer_base.h) */
/* BINDTOOL_HEADER_FILE_HASH(b2953d675c157a3136348991d5e0d365) */
/***********************************************************************************/
#include <pybind11/complex.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
namespace py = pybind11;
#include <gnuradio/digital/ofdm_equalizer_base.h>
// pydoc.h is automatically generated in the build directory
#include <ofdm_equalizer_base_pydoc.h>
void bind_ofdm_equalizer_base(py::module& m)
{
using ofdm_equalizer_base = ::gr::digital::ofdm_equalizer_base;
using ofdm_equalizer_1d_pilots = ::gr::digital::ofdm_equalizer_1d_pilots;
py::class_<ofdm_equalizer_base, std::shared_ptr<ofdm_equalizer_base>>(
m, "ofdm_equalizer_base", D(ofdm_equalizer_base))
// .def(py::init<int>(), py::arg("fft_len"),
// D(ofdm_equalizer_base,ofdm_equalizer_base,0)
// )
// .def(py::init<gr::digital::ofdm_equalizer_base const &>(), py::arg("arg0"),
// D(ofdm_equalizer_base,ofdm_equalizer_base,1)
// )
.def("reset", &ofdm_equalizer_base::reset, D(ofdm_equalizer_base, reset))
.def("equalize",
&ofdm_equalizer_base::equalize,
py::arg("frame"),
py::arg("n_sym"),
py::arg("initial_taps") = std::vector<gr_complex>(),
py::arg("tags") = std::vector<gr::tag_t>(),
D(ofdm_equalizer_base, equalize))
.def("get_channel_state",
&ofdm_equalizer_base::get_channel_state,
py::arg("taps"),
D(ofdm_equalizer_base, get_channel_state))
.def("fft_len", &ofdm_equalizer_base::fft_len, D(ofdm_equalizer_base, fft_len))
.def("base", &ofdm_equalizer_base::base, D(ofdm_equalizer_base, base))
;
py::class_<ofdm_equalizer_1d_pilots,
gr::digital::ofdm_equalizer_base,
std::shared_ptr<ofdm_equalizer_1d_pilots>>(
m, "ofdm_equalizer_1d_pilots", D(ofdm_equalizer_1d_pilots))
// .def(py::init<int,std::vector<std::vector<int, std::allocator<int> >,
// std::allocator<std::vector<int, std::allocator<int> > > > const
// &,std::vector<std::vector<int, std::allocator<int> >,
// std::allocator<std::vector<int, std::allocator<int> > > > const
// &,std::vector<std::vector<std::complex<float>,
// std::allocator<std::complex<float> > >,
// std::allocator<std::vector<std::complex<float>,
// std::allocator<std::complex<float> > > > > const &,int,bool>(),
// py::arg("fft_len"),
// py::arg("occupied_carriers"),
// py::arg("pilot_carriers"),
// py::arg("pilot_symbols"),
// py::arg("symbols_skipped"),
// py::arg("input_is_shifted"),
// D(ofdm_equalizer_1d_pilots,ofdm_equalizer_1d_pilots,0)
// )
// .def(py::init<gr::digital::ofdm_equalizer_1d_pilots const &>(),
// py::arg("arg0"),
// D(ofdm_equalizer_1d_pilots,ofdm_equalizer_1d_pilots,1)
// )
.def(
"reset", &ofdm_equalizer_1d_pilots::reset, D(ofdm_equalizer_1d_pilots, reset))
.def("get_channel_state",
&ofdm_equalizer_1d_pilots::get_channel_state,
py::arg("taps"),
D(ofdm_equalizer_1d_pilots, get_channel_state))
;
}
|