From 0112d661bef0dac798858bf90eaae6d5393622d6 Mon Sep 17 00:00:00 2001
From: Josh Morman <mormjb@gmail.com>
Date: Thu, 23 Apr 2020 10:44:55 -0400
Subject: qtgui: add pybind11 bindings

---
 .../python/qtgui/bindings/trigger_mode_python.cc   | 36 ++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 gr-qtgui/python/qtgui/bindings/trigger_mode_python.cc

(limited to 'gr-qtgui/python/qtgui/bindings/trigger_mode_python.cc')

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();
+}
-- 
cgit v1.2.3