root / gr-pager / src / pager.i @ 7783dc88
History | View | Annotate | Download (2.1 kB)
| 1 | /* |
|---|---|
| 2 | * Copyright 2005,2006,2009 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 | %include "gnuradio.i" |
| 23 | |
| 24 | %{
|
| 25 | #include "pager_flex_frame.h" |
| 26 | #include "pager_slicer_fb.h" |
| 27 | #include "pager_flex_sync.h" |
| 28 | #include "pager_flex_deinterleave.h" |
| 29 | #include "pager_flex_parse.h" |
| 30 | %} |
| 31 | |
| 32 | %include "pager_flex_frame.i" |
| 33 | |
| 34 | // ---------------------------------------------------------------- |
| 35 | |
| 36 | GR_SWIG_BLOCK_MAGIC(pager,slicer_fb); |
| 37 | |
| 38 | pager_slicer_fb_sptr pager_make_slicer_fb(float alpha); |
| 39 | |
| 40 | class pager_slicer_fb : public gr_sync_block |
| 41 | {
|
| 42 | private: |
| 43 | pager_slicer_fb(float alpha); |
| 44 | |
| 45 | public: |
| 46 | float dc_offset() const { return d_avg; }
|
| 47 | }; |
| 48 | |
| 49 | // ---------------------------------------------------------------- |
| 50 | |
| 51 | GR_SWIG_BLOCK_MAGIC(pager,flex_sync); |
| 52 | |
| 53 | pager_flex_sync_sptr pager_make_flex_sync(); |
| 54 | |
| 55 | class pager_flex_sync : public gr_block |
| 56 | {
|
| 57 | private: |
| 58 | pager_flex_sync(); |
| 59 | |
| 60 | public: |
| 61 | }; |
| 62 | |
| 63 | // ---------------------------------------------------------------- |
| 64 | |
| 65 | GR_SWIG_BLOCK_MAGIC(pager,flex_deinterleave); |
| 66 | |
| 67 | pager_flex_deinterleave_sptr pager_make_flex_deinterleave(); |
| 68 | |
| 69 | class pager_flex_deinterleave : public gr_sync_decimator |
| 70 | {
|
| 71 | private: |
| 72 | pager_flex_deinterleave(); |
| 73 | |
| 74 | public: |
| 75 | }; |
| 76 | |
| 77 | // ---------------------------------------------------------------- |
| 78 | |
| 79 | GR_SWIG_BLOCK_MAGIC(pager,flex_parse); |
| 80 | |
| 81 | pager_flex_parse_sptr pager_make_flex_parse(gr_msg_queue_sptr queue, float freq); |
| 82 | |
| 83 | class pager_flex_parse : public gr_block |
| 84 | {
|
| 85 | private: |
| 86 | pager_flex_parse(gr_msg_queue_sptr queue, float freq); |
| 87 | |
| 88 | public: |
| 89 | }; |