Merged r7611:7614 from jcorgan/gpio into trunk. Adds custom
[debian/gnuradio] / gr-gpio / src / lib / gpio.i
1 /* -*- c++ -*- */
2
3 %feature("autodoc", "1");               // generate python docstrings
4
5 %include "exception.i"
6 %import "gnuradio.i"                    // the common stuff
7
8 %{
9 #include "gnuradio_swig_bug_workaround.h"       // mandatory bug fix
10 #include "gpio_and_const_ss.h"
11 #include <stdexcept>
12 %}
13
14 // ----------------------------------------------------------------
15
16 GR_SWIG_BLOCK_MAGIC(gpio,and_const_ss)
17
18 gpio_and_const_ss_sptr gpio_make_and_const_ss (unsigned short k);
19
20 class gpio_and_const_ss : public gr_sync_block
21 {
22  private:
23   gpio_and_const_ss (unsigned short k);
24
25  public:
26   unsigned short k () const { return d_k; }
27   void set_k (unsigned short k) { d_k = k; }
28 };