]> git.gag.com Git - debian/gnuradio/blobdiff - gr-gpio/src/lib/gpio.i
Merged r7611:7614 from jcorgan/gpio into trunk. Adds custom
[debian/gnuradio] / gr-gpio / src / lib / gpio.i
diff --git a/gr-gpio/src/lib/gpio.i b/gr-gpio/src/lib/gpio.i
new file mode 100644 (file)
index 0000000..8544e91
--- /dev/null
@@ -0,0 +1,28 @@
+/* -*- c++ -*- */
+
+%feature("autodoc", "1");              // generate python docstrings
+
+%include "exception.i"
+%import "gnuradio.i"                   // the common stuff
+
+%{
+#include "gnuradio_swig_bug_workaround.h"      // mandatory bug fix
+#include "gpio_and_const_ss.h"
+#include <stdexcept>
+%}
+
+// ----------------------------------------------------------------
+
+GR_SWIG_BLOCK_MAGIC(gpio,and_const_ss)
+
+gpio_and_const_ss_sptr gpio_make_and_const_ss (unsigned short k);
+
+class gpio_and_const_ss : public gr_sync_block
+{
+ private:
+  gpio_and_const_ss (unsigned short k);
+
+ public:
+  unsigned short k () const { return d_k; }
+  void set_k (unsigned short k) { d_k = k; }
+};