summaryrefslogtreecommitdiff
path: root/gr-qtgui/python/qtgui/bindings/trigger_mode_python.cc
diff options
context:
space:
mode:
authorMarcus Müller <marcus@hostalia.de>2020-06-19 11:07:54 +0200
committerMarcus Müller <marcus@hostalia.de>2020-06-19 11:07:54 +0200
commite76d04ca2f4f15e3b1a1ab2a81dd52c4e6d2472c (patch)
tree1d86f68fceed9cd7204d9a79e816dc06c15feaf4 /gr-qtgui/python/qtgui/bindings/trigger_mode_python.cc
parent98348e37209aa7daeb96fe5ead815e5b083dc6da (diff)
parent39311758cb1e6a7424d3213b3eb2c65c8c4dcfe1 (diff)
Move from SWIG to Pybind11
Goodbye, and thanks for all the fish, SWIG. Please refer to docs/PYBIND11.md for details on how to deal with Pybind.
Diffstat (limited to 'gr-qtgui/python/qtgui/bindings/trigger_mode_python.cc')
-rw-r--r--gr-qtgui/python/qtgui/bindings/trigger_mode_python.cc36
1 files changed, 36 insertions, 0 deletions
diff --git a/gr-qtgui/python/qtgui/bindings/trigger_mode_python.cc b/gr-qtgui/python/qtgui/bindings/trigger_mode_python.cc
new file mode 100644
index 0000000000..e53446bf13
--- /dev/null
+++ b/gr-qtgui/python/qtgui/bindings/trigger_mode_python.cc
@@ -0,0 +1,36 @@
+/*
+ * 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/qtgui/trigger_mode.h>
+// pydoc.h is automatically generated in the build directory
+#include <trigger_mode_pydoc.h>
+
+void bind_trigger_mode(py::module& m)
+{
+
+
+ py::enum_<::gr::qtgui::trigger_mode>(m, "trigger_mode")
+ .value("TRIG_MODE_FREE", ::gr::qtgui::TRIG_MODE_FREE) // 0
+ .value("TRIG_MODE_AUTO", ::gr::qtgui::TRIG_MODE_AUTO) // 1
+ .value("TRIG_MODE_NORM", ::gr::qtgui::TRIG_MODE_NORM) // 2
+ .value("TRIG_MODE_TAG", ::gr::qtgui::TRIG_MODE_TAG) // 3
+ .export_values();
+ py::enum_<::gr::qtgui::trigger_slope>(m, "trigger_slope")
+ .value("TRIG_SLOPE_POS", ::gr::qtgui::TRIG_SLOPE_POS) // 0
+ .value("TRIG_SLOPE_NEG", ::gr::qtgui::TRIG_SLOPE_NEG) // 1
+ .export_values();
+}