1 /* -*- c++ -*- */ 2 /* 3 * Copyright 2012-2013 Free Software Foundation, Inc. 4 * 5 * This file is part of GNU Radio 6 * 7 * GNU Radio is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation; either version 3, or (at your option) 10 * any later version. 11 * 12 * GNU Radio is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with GNU Radio; see the file COPYING. If not, write to 19 * the Free Software Foundation, Inc., 51 Franklin Street, 20 * Boston, MA 02110-1301, USA. 21 */ 22 23 #define BLOCKS_API 24 #define GR_RUNTIME_API 25 26 %include "gnuradio.i" 27 28 //load generated python docstrings 29 %include "blocks_swig2_doc.i" 30 31 %include "feval.i" 32 33 %{ 34 #include "gnuradio/blocks/and_const.h" 35 #include "gnuradio/blocks/argmax.h" 36 #include "gnuradio/blocks/bin_statistics_f.h" 37 #include "gnuradio/blocks/burst_tagger.h" 38 #include "gnuradio/blocks/char_to_float.h" 39 #include "gnuradio/blocks/char_to_short.h" 40 #include "gnuradio/blocks/check_lfsr_32k_s.h" 41 #include "gnuradio/blocks/complex_to_interleaved_char.h" 42 #include "gnuradio/blocks/complex_to_interleaved_short.h" 43 #include "gnuradio/blocks/complex_to_float.h" 44 #include "gnuradio/blocks/complex_to_magphase.h" 45 #include "gnuradio/blocks/complex_to_real.h" 46 #include "gnuradio/blocks/complex_to_imag.h" 47 #include "gnuradio/blocks/complex_to_mag.h" 48 #include "gnuradio/blocks/complex_to_mag_squared.h" 49 #include "gnuradio/blocks/complex_to_arg.h" 50 #include "gnuradio/blocks/conjugate_cc.h" 51 %} 52 53 %include "gnuradio/blocks/and_const.h" 54 %include "gnuradio/blocks/argmax.h" 55 %include "gnuradio/blocks/char_to_float.h" 56 %include "gnuradio/blocks/bin_statistics_f.h" 57 %include "gnuradio/blocks/burst_tagger.h" 58 %include "gnuradio/blocks/char_to_short.h" 59 %include "gnuradio/blocks/check_lfsr_32k_s.h" 60 %include "gnuradio/blocks/complex_to_interleaved_char.h" 61 %include "gnuradio/blocks/complex_to_interleaved_short.h" 62 %include "gnuradio/blocks/complex_to_float.h" 63 %include "gnuradio/blocks/complex_to_magphase.h" 64 %include "gnuradio/blocks/complex_to_real.h" 65 %include "gnuradio/blocks/complex_to_imag.h" 66 %include "gnuradio/blocks/complex_to_mag.h" 67 %include "gnuradio/blocks/complex_to_mag_squared.h" 68 %include "gnuradio/blocks/complex_to_arg.h" 69 %include "gnuradio/blocks/conjugate_cc.h" 70 71 GR_SWIG_BLOCK_MAGIC2_TMPL(blocks, and_const_bb, and_const<std::uint8_t>); 72 GR_SWIG_BLOCK_MAGIC2_TMPL(blocks, and_const_ss, and_const<std::int16_t>); 73 GR_SWIG_BLOCK_MAGIC2_TMPL(blocks, and_const_ii, and_const<std::int32_t>); 74 GR_SWIG_BLOCK_MAGIC2_TMPL(blocks, argmax_fs, argmax<float>); 75 GR_SWIG_BLOCK_MAGIC2_TMPL(blocks, argmax_is, argmax<std::int32_t>); 76 GR_SWIG_BLOCK_MAGIC2_TMPL(blocks, argmax_ss, argmax<std::int16_t>); 77 GR_SWIG_BLOCK_MAGIC2(blocks, bin_statistics_f); 78 GR_SWIG_BLOCK_MAGIC2(blocks, burst_tagger); 79 GR_SWIG_BLOCK_MAGIC2(blocks, char_to_float); 80 GR_SWIG_BLOCK_MAGIC2(blocks, char_to_short); 81 GR_SWIG_BLOCK_MAGIC2(blocks, check_lfsr_32k_s); 82 GR_SWIG_BLOCK_MAGIC2(blocks, complex_to_interleaved_char); 83 GR_SWIG_BLOCK_MAGIC2(blocks, complex_to_interleaved_short); 84 GR_SWIG_BLOCK_MAGIC2(blocks, complex_to_float); 85 GR_SWIG_BLOCK_MAGIC2(blocks, complex_to_magphase); 86 GR_SWIG_BLOCK_MAGIC2(blocks, complex_to_real); 87 GR_SWIG_BLOCK_MAGIC2(blocks, complex_to_imag); 88 GR_SWIG_BLOCK_MAGIC2(blocks, complex_to_mag); 89 GR_SWIG_BLOCK_MAGIC2(blocks, complex_to_mag_squared); 90 GR_SWIG_BLOCK_MAGIC2(blocks, complex_to_arg); 91 GR_SWIG_BLOCK_MAGIC2(blocks, conjugate_cc); 92