summaryrefslogtreecommitdiff
path: root/gr-gpio/src/lib/gpio.i
blob: 8544e9138643ef012ad07f0f144b337cdedbf4e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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; }
};