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
|
/*
* 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(symbol_sync_cc.h) */
/* BINDTOOL_HEADER_FILE_HASH(6031664528c8f0fb0834ad9d79b65553) */
/***********************************************************************************/
#include <pybind11/complex.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
namespace py = pybind11;
#include <gnuradio/digital/symbol_sync_cc.h>
// pydoc.h is automatically generated in the build directory
#include <symbol_sync_cc_pydoc.h>
void bind_symbol_sync_cc(py::module& m)
{
using symbol_sync_cc = ::gr::digital::symbol_sync_cc;
py::class_<symbol_sync_cc,
gr::block,
gr::basic_block,
std::shared_ptr<symbol_sync_cc>>(m, "symbol_sync_cc", D(symbol_sync_cc))
.def(py::init(&symbol_sync_cc::make),
py::arg("detector_type"),
py::arg("sps"),
py::arg("loop_bw"),
py::arg("damping_factor") = 1.F,
py::arg("ted_gain") = 1.F,
py::arg("max_deviation") = 1.5F,
py::arg("osps") = 1,
py::arg("slicer") = gr::digital::constellation_sptr(),
py::arg("interp_type") = ::gr::digital::ir_type::IR_MMSE_8TAP,
py::arg("n_filters") = 128,
py::arg("taps") = std::vector<float>(),
D(symbol_sync_cc, make))
.def("loop_bandwidth",
&symbol_sync_cc::loop_bandwidth,
D(symbol_sync_cc, loop_bandwidth))
.def("damping_factor",
&symbol_sync_cc::damping_factor,
D(symbol_sync_cc, damping_factor))
.def("ted_gain", &symbol_sync_cc::ted_gain, D(symbol_sync_cc, ted_gain))
.def("alpha", &symbol_sync_cc::alpha, D(symbol_sync_cc, alpha))
.def("beta", &symbol_sync_cc::beta, D(symbol_sync_cc, beta))
.def("set_loop_bandwidth",
&symbol_sync_cc::set_loop_bandwidth,
py::arg("omega_n_norm"),
D(symbol_sync_cc, set_loop_bandwidth))
.def("set_damping_factor",
&symbol_sync_cc::set_damping_factor,
py::arg("zeta"),
D(symbol_sync_cc, set_damping_factor))
.def("set_ted_gain",
&symbol_sync_cc::set_ted_gain,
py::arg("ted_gain"),
D(symbol_sync_cc, set_ted_gain))
.def("set_alpha",
&symbol_sync_cc::set_alpha,
py::arg("alpha"),
D(symbol_sync_cc, set_alpha))
.def("set_beta",
&symbol_sync_cc::set_beta,
py::arg("beta"),
D(symbol_sync_cc, set_beta))
;
}
|