summaryrefslogtreecommitdiff
path: root/gr-blocks/python/blocks/bindings/rotator_cc_python.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gr-blocks/python/blocks/bindings/rotator_cc_python.cc')
-rw-r--r--gr-blocks/python/blocks/bindings/rotator_cc_python.cc51
1 files changed, 51 insertions, 0 deletions
diff --git a/gr-blocks/python/blocks/bindings/rotator_cc_python.cc b/gr-blocks/python/blocks/bindings/rotator_cc_python.cc
new file mode 100644
index 0000000000..906a7e2105
--- /dev/null
+++ b/gr-blocks/python/blocks/bindings/rotator_cc_python.cc
@@ -0,0 +1,51 @@
+/*
+ * 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(rotator_cc.h) */
+/* BINDTOOL_HEADER_FILE_HASH(e127d40b39a00e6725b5f7214ef0e6d2) */
+/***********************************************************************************/
+
+#include <pybind11/complex.h>
+#include <pybind11/pybind11.h>
+#include <pybind11/stl.h>
+
+namespace py = pybind11;
+
+#include <gnuradio/blocks/rotator_cc.h>
+// pydoc.h is automatically generated in the build directory
+#include <rotator_cc_pydoc.h>
+
+void bind_rotator_cc(py::module& m)
+{
+
+ using rotator_cc = ::gr::blocks::rotator_cc;
+
+
+ py::class_<rotator_cc,
+ gr::sync_block,
+ gr::block,
+ gr::basic_block,
+ std::shared_ptr<rotator_cc>>(m, "rotator_cc", D(rotator_cc))
+
+ .def(py::init(&rotator_cc::make), py::arg("phase_inc") = 0., D(rotator_cc, make))
+
+
+ .def("set_phase_inc",
+ &rotator_cc::set_phase_inc,
+ py::arg("phase_inc"),
+ D(rotator_cc, set_phase_inc))
+
+ ;
+}