From d8058406fa93becbfd8f5cbde0e96363e190d9ba Mon Sep 17 00:00:00 2001
From: Josh Morman <mormjb@gmail.com>
Date: Thu, 23 Apr 2020 07:54:44 -0400
Subject: analog: add pybind11 bindings

---
 .../analog/bindings/sig_source_waveform_python.cc  | 31 ++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 gr-analog/python/analog/bindings/sig_source_waveform_python.cc

(limited to 'gr-analog/python/analog/bindings/sig_source_waveform_python.cc')

diff --git a/gr-analog/python/analog/bindings/sig_source_waveform_python.cc b/gr-analog/python/analog/bindings/sig_source_waveform_python.cc
new file mode 100644
index 0000000000..009c517620
--- /dev/null
+++ b/gr-analog/python/analog/bindings/sig_source_waveform_python.cc
@@ -0,0 +1,31 @@
+/*
+ * 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/analog/sig_source_waveform.h>
+
+void bind_sig_source_waveform(py::module& m)
+{
+
+    py::enum_<gr::analog::gr_waveform_t>(m, "gr_waveform_t")
+        .value("GR_CONST_WAVE", gr::analog::GR_CONST_WAVE) // 100
+        .value("GR_SIN_WAVE", gr::analog::GR_SIN_WAVE)     // 101
+        .value("GR_COS_WAVE", gr::analog::GR_COS_WAVE)     // 102
+        .value("GR_SQR_WAVE", gr::analog::GR_SQR_WAVE)     // 103
+        .value("GR_TRI_WAVE", gr::analog::GR_TRI_WAVE)     // 104
+        .value("GR_SAW_WAVE", gr::analog::GR_SAW_WAVE)     // 105
+        .export_values();
+}
-- 
cgit v1.2.3