summaryrefslogtreecommitdiff
path: root/gr-channels/python/channels/bindings/dynamic_channel_model_python.cc
diff options
context:
space:
mode:
authorJosh Morman <mormjb@gmail.com>2020-04-23 08:07:28 -0400
committerJosh Morman <mormjb@gmail.com>2020-06-04 10:05:47 -0400
commitef1594876dea5da9c4920d59d38aa2583307bc2d (patch)
treef6e734bddf3aa71addfca439510665c3db06388f /gr-channels/python/channels/bindings/dynamic_channel_model_python.cc
parent8714e249cdfeb1da4405c35ecc8ab718e4e7dcc6 (diff)
channels: add pybind11 bindings
Diffstat (limited to 'gr-channels/python/channels/bindings/dynamic_channel_model_python.cc')
-rw-r--r--gr-channels/python/channels/bindings/dynamic_channel_model_python.cc138
1 files changed, 138 insertions, 0 deletions
diff --git a/gr-channels/python/channels/bindings/dynamic_channel_model_python.cc b/gr-channels/python/channels/bindings/dynamic_channel_model_python.cc
new file mode 100644
index 0000000000..bab18cb6d5
--- /dev/null
+++ b/gr-channels/python/channels/bindings/dynamic_channel_model_python.cc
@@ -0,0 +1,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))
+
+ ;
+}