summaryrefslogtreecommitdiff
path: root/gr-channels/python/channels/bindings/dynamic_channel_model_python.cc
blob: bab18cb6d56aa2dbe9ec49a9ac29b404913bf584 (plain)
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
/*
 * 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 */

#include <pybind11/complex.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

namespace py = pybind11;

#include <gnuradio/channels/dynamic_channel_model.h>
// pydoc.h is automatically generated in the build directory
#include <dynamic_channel_model_pydoc.h>

void bind_dynamic_channel_model(py::module& m)
{

    using dynamic_channel_model = ::gr::channels::dynamic_channel_model;


    py::class_<dynamic_channel_model,
               gr::hier_block2,
               gr::basic_block,
               std::shared_ptr<dynamic_channel_model>>(
        m, "dynamic_channel_model", D(dynamic_channel_model))

        .def(py::init(&dynamic_channel_model::make),
             py::arg("samp_rate"),
             py::arg("sro_std_dev"),
             py::arg("sro_max_dev"),
             py::arg("cfo_std_dev"),
             py::arg("cfo_max_dev"),
             py::arg("N"),
             py::arg("doppler_freq"),
             py::arg("LOS_model"),
             py::arg("K"),
             py::arg("delays"),
             py::arg("mags"),
             py::arg("ntaps_mpath"),
             py::arg("noise_amp"),
             py::arg("noise_seed"),
             D(dynamic_channel_model, make))


        .def("samp_rate",
             &dynamic_channel_model::samp_rate,
             D(dynamic_channel_model, samp_rate))


        .def("sro_dev_std",
             &dynamic_channel_model::sro_dev_std,
             D(dynamic_channel_model, sro_dev_std))


        .def("sro_dev_max",
             &dynamic_channel_model::sro_dev_max,
             D(dynamic_channel_model, sro_dev_max))


        .def("cfo_dev_std",
             &dynamic_channel_model::cfo_dev_std,
             D(dynamic_channel_model, cfo_dev_std))


        .def("cfo_dev_max",
             &dynamic_channel_model::cfo_dev_max,
             D(dynamic_channel_model, cfo_dev_max))


        .def("noise_amp",
             &dynamic_channel_model::noise_amp,
             D(dynamic_channel_model, noise_amp))


        .def("doppler_freq",
             &dynamic_channel_model::doppler_freq,
             D(dynamic_channel_model, doppler_freq))


        .def("K", &dynamic_channel_model::K, D(dynamic_channel_model, K))


        .def("set_samp_rate",
             &dynamic_channel_model::set_samp_rate,
             py::arg("arg0"),
             D(dynamic_channel_model, set_samp_rate))


        .def("set_sro_dev_std",
             &dynamic_channel_model::set_sro_dev_std,
             py::arg("arg0"),
             D(dynamic_channel_model, set_sro_dev_std))


        .def("set_sro_dev_max",
             &dynamic_channel_model::set_sro_dev_max,
             py::arg("arg0"),
             D(dynamic_channel_model, set_sro_dev_max))


        .def("set_cfo_dev_std",
             &dynamic_channel_model::set_cfo_dev_std,
             py::arg("arg0"),
             D(dynamic_channel_model, set_cfo_dev_std))


        .def("set_cfo_dev_max",
             &dynamic_channel_model::set_cfo_dev_max,
             py::arg("arg0"),
             D(dynamic_channel_model, set_cfo_dev_max))


        .def("set_noise_amp",
             &dynamic_channel_model::set_noise_amp,
             py::arg("arg0"),
             D(dynamic_channel_model, set_noise_amp))


        .def("set_doppler_freq",
             &dynamic_channel_model::set_doppler_freq,
             py::arg("arg0"),
             D(dynamic_channel_model, set_doppler_freq))


        .def("set_K",
             &dynamic_channel_model::set_K,
             py::arg("arg0"),
             D(dynamic_channel_model, set_K))

        ;
}