summaryrefslogtreecommitdiff
path: root/gr-blocks/python/blocks/bindings/float_to_complex_python.cc
diff options
context:
space:
mode:
authorJosh Morman <mormjb@gmail.com>2020-04-23 08:05:31 -0400
committerJosh Morman <mormjb@gmail.com>2020-06-04 10:05:47 -0400
commit8714e249cdfeb1da4405c35ecc8ab718e4e7dcc6 (patch)
treeba54f56c0f9951855ddade5f426ad34c9efb0ce0 /gr-blocks/python/blocks/bindings/float_to_complex_python.cc
parent2aaa3593989a709911a83aa4890a8f6a22c484f3 (diff)
blocks: add pybind11 bindings
Diffstat (limited to 'gr-blocks/python/blocks/bindings/float_to_complex_python.cc')
-rw-r--r--gr-blocks/python/blocks/bindings/float_to_complex_python.cc41
1 files changed, 41 insertions, 0 deletions
diff --git a/gr-blocks/python/blocks/bindings/float_to_complex_python.cc b/gr-blocks/python/blocks/bindings/float_to_complex_python.cc
new file mode 100644
index 0000000000..ed6a99f117
--- /dev/null
+++ b/gr-blocks/python/blocks/bindings/float_to_complex_python.cc
@@ -0,0 +1,41 @@
+/*
+ * 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/blocks/float_to_complex.h>
+// pydoc.h is automatically generated in the build directory
+#include <float_to_complex_pydoc.h>
+
+void bind_float_to_complex(py::module& m)
+{
+
+ using float_to_complex = ::gr::blocks::float_to_complex;
+
+
+ py::class_<float_to_complex,
+ gr::sync_block,
+ gr::block,
+ gr::basic_block,
+ std::shared_ptr<float_to_complex>>(
+ m, "float_to_complex", D(float_to_complex))
+
+ .def(py::init(&float_to_complex::make),
+ py::arg("vlen") = 1,
+ D(float_to_complex, make))
+
+
+ ;
+}