diff options
Diffstat (limited to 'gr-analog/python/analog/bindings/frequency_modulator_fc_python.cc')
-rw-r--r-- | gr-analog/python/analog/bindings/frequency_modulator_fc_python.cc | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/gr-analog/python/analog/bindings/frequency_modulator_fc_python.cc b/gr-analog/python/analog/bindings/frequency_modulator_fc_python.cc new file mode 100644 index 0000000000..abf83d2d5e --- /dev/null +++ b/gr-analog/python/analog/bindings/frequency_modulator_fc_python.cc @@ -0,0 +1,59 @@ +/* + * 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(frequency_modulator_fc.h) */ +/* BINDTOOL_HEADER_FILE_HASH(550cd0787306aac8324787fffca29dc4) */ +/***********************************************************************************/ + +#include <pybind11/complex.h> +#include <pybind11/pybind11.h> +#include <pybind11/stl.h> + +namespace py = pybind11; + +#include <gnuradio/analog/frequency_modulator_fc.h> +// pydoc.h is automatically generated in the build directory +#include <frequency_modulator_fc_pydoc.h> + +void bind_frequency_modulator_fc(py::module& m) +{ + + using frequency_modulator_fc = ::gr::analog::frequency_modulator_fc; + + + py::class_<frequency_modulator_fc, + gr::sync_block, + gr::block, + gr::basic_block, + std::shared_ptr<frequency_modulator_fc>>( + m, "frequency_modulator_fc", D(frequency_modulator_fc)) + + .def(py::init(&frequency_modulator_fc::make), + py::arg("sensitivity"), + D(frequency_modulator_fc, make)) + + + .def("set_sensitivity", + &frequency_modulator_fc::set_sensitivity, + py::arg("sens"), + D(frequency_modulator_fc, set_sensitivity)) + + + .def("sensitivity", + &frequency_modulator_fc::sensitivity, + D(frequency_modulator_fc, sensitivity)) + + ; +} |