diff options
author | Josh Morman <mormjb@gmail.com> | 2020-04-23 08:07:28 -0400 |
---|---|---|
committer | Josh Morman <mormjb@gmail.com> | 2020-06-04 10:05:47 -0400 |
commit | ef1594876dea5da9c4920d59d38aa2583307bc2d (patch) | |
tree | f6e734bddf3aa71addfca439510665c3db06388f /gr-channels/python/channels/bindings/selective_fading_model2_python.cc | |
parent | 8714e249cdfeb1da4405c35ecc8ab718e4e7dcc6 (diff) |
channels: add pybind11 bindings
Diffstat (limited to 'gr-channels/python/channels/bindings/selective_fading_model2_python.cc')
-rw-r--r-- | gr-channels/python/channels/bindings/selective_fading_model2_python.cc | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/gr-channels/python/channels/bindings/selective_fading_model2_python.cc b/gr-channels/python/channels/bindings/selective_fading_model2_python.cc new file mode 100644 index 0000000000..2f26e2f70f --- /dev/null +++ b/gr-channels/python/channels/bindings/selective_fading_model2_python.cc @@ -0,0 +1,76 @@ +/* + * 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/selective_fading_model2.h> +// pydoc.h is automatically generated in the build directory +#include <selective_fading_model2_pydoc.h> + +void bind_selective_fading_model2(py::module& m) +{ + + using selective_fading_model2 = ::gr::channels::selective_fading_model2; + + + py::class_<selective_fading_model2, + gr::sync_block, + gr::block, + gr::basic_block, + std::shared_ptr<selective_fading_model2>>( + m, "selective_fading_model2", D(selective_fading_model2)) + + .def(py::init(&selective_fading_model2::make), + py::arg("N"), + py::arg("fDTs"), + py::arg("LOS"), + py::arg("K"), + py::arg("seed"), + py::arg("delays"), + py::arg("delays_std"), + py::arg("delays_maxdev"), + py::arg("mags"), + py::arg("ntaps"), + D(selective_fading_model2, make)) + + + .def("fDTs", &selective_fading_model2::fDTs, D(selective_fading_model2, fDTs)) + + + .def("K", &selective_fading_model2::K, D(selective_fading_model2, K)) + + + .def("step", &selective_fading_model2::step, D(selective_fading_model2, step)) + + + .def("set_fDTs", + &selective_fading_model2::set_fDTs, + py::arg("fDTs"), + D(selective_fading_model2, set_fDTs)) + + + .def("set_K", + &selective_fading_model2::set_K, + py::arg("K"), + D(selective_fading_model2, set_K)) + + + .def("set_step", + &selective_fading_model2::set_step, + py::arg("step"), + D(selective_fading_model2, set_step)) + + ; +} |