Updated license from GPL version 2 or later to GPL version 3 or later.
[debian/gnuradio] / gr-pager / src / pager.i
1 /*
2  * Copyright 2005,2006 Free Software Foundation, Inc.
3  * 
4  * This file is part of GNU Radio
5  * 
6  * GNU Radio is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 3, or (at your option)
9  * any later version.
10  * 
11  * GNU Radio is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  * 
16  * You should have received a copy of the GNU General Public License
17  * along with GNU Radio; see the file COPYING.  If not, write to
18  * the Free Software Foundation, Inc., 51 Franklin Street,
19  * Boston, MA 02110-1301, USA.
20  */
21
22 %feature("autodoc","1");
23 %include "exception.i"
24 %import "gnuradio.i"
25
26 %{
27 #include "gnuradio_swig_bug_workaround.h"       // mandatory bug fix
28 #include "pager_flex_frame.h"
29 #include "pager_slicer_fb.h"
30 #include "pager_flex_sync.h"
31 #include "pager_flex_deinterleave.h"
32 #include "pager_flex_parse.h"
33 #include <stdexcept>
34 %}
35
36 %include "pager_flex_frame.i"
37
38 // ----------------------------------------------------------------
39
40 GR_SWIG_BLOCK_MAGIC(pager,slicer_fb);
41
42 pager_slicer_fb_sptr pager_make_slicer_fb(float alpha);
43
44 class pager_slicer_fb : public gr_sync_block
45 {
46 private:
47     pager_slicer_fb(float alpha);
48
49 public:
50     float dc_offset() const { return d_avg; }
51 };
52
53 // ----------------------------------------------------------------
54
55 GR_SWIG_BLOCK_MAGIC(pager,flex_sync);
56
57 pager_flex_sync_sptr pager_make_flex_sync();
58
59 class pager_flex_sync : public gr_block
60 {
61 private:
62     pager_flex_sync();
63
64 public:
65 };
66
67 // ----------------------------------------------------------------
68
69 GR_SWIG_BLOCK_MAGIC(pager,flex_deinterleave);
70
71 pager_flex_deinterleave_sptr pager_make_flex_deinterleave();
72
73 class pager_flex_deinterleave : public gr_sync_decimator
74 {
75 private:
76     pager_flex_deinterleave();
77
78 public:
79 };
80
81 // ----------------------------------------------------------------
82
83 GR_SWIG_BLOCK_MAGIC(pager,flex_parse);
84
85 pager_flex_parse_sptr pager_make_flex_parse(gr_msg_queue_sptr queue, float freq);
86
87 class pager_flex_parse : public gr_block
88 {
89 private:
90     pager_flex_parse(gr_msg_queue_sptr queue, float freq);
91
92 public:
93 };