1 /* -*- c++ -*- */ 2 /* 3 * Copyright 2017 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 25 %include "gnuradio.i" 26 27 //load generated python docstrings 28 %include "blocks_swig9_doc.i" 29 30 %{ 31 #include "gnuradio/blocks/float_to_char.h" 32 #include "gnuradio/blocks/float_to_complex.h" 33 #include "gnuradio/blocks/magphase_to_complex.h" 34 #include "gnuradio/blocks/float_to_int.h" 35 #include "gnuradio/blocks/float_to_short.h" 36 #include "gnuradio/blocks/float_to_uchar.h" 37 #include "gnuradio/blocks/int_to_float.h" 38 #include "gnuradio/blocks/integrate.h" 39 #include "gnuradio/blocks/interleave.h" 40 #include "gnuradio/blocks/interleaved_short_to_complex.h" 41 #include "gnuradio/blocks/interleaved_char_to_complex.h" 42 #include "gnuradio/blocks/keep_m_in_n.h" 43 #include "gnuradio/blocks/keep_one_in_n.h" 44 #include "gnuradio/blocks/lfsr_32k_source_s.h" 45 #include "gnuradio/blocks/max_blk.h" 46 %} 47 48 %include "gnuradio/blocks/float_to_char.h" 49 %include "gnuradio/blocks/float_to_complex.h" 50 %include "gnuradio/blocks/magphase_to_complex.h" 51 %include "gnuradio/blocks/float_to_int.h" 52 %include "gnuradio/blocks/float_to_short.h" 53 %include "gnuradio/blocks/float_to_uchar.h" 54 %include "gnuradio/blocks/int_to_float.h" 55 %include "gnuradio/blocks/integrate.h" 56 %include "gnuradio/blocks/interleave.h" 57 %include "gnuradio/blocks/interleaved_short_to_complex.h" 58 %include "gnuradio/blocks/interleaved_char_to_complex.h" 59 %include "gnuradio/blocks/keep_m_in_n.h" 60 %include "gnuradio/blocks/keep_one_in_n.h" 61 %include "gnuradio/blocks/lfsr_32k_source_s.h" 62 %include "gnuradio/blocks/max_blk.h" 63 64 GR_SWIG_BLOCK_MAGIC2(blocks, float_to_char); 65 GR_SWIG_BLOCK_MAGIC2(blocks, float_to_complex); 66 GR_SWIG_BLOCK_MAGIC2(blocks, magphase_to_complex); 67 GR_SWIG_BLOCK_MAGIC2(blocks, float_to_int); 68 GR_SWIG_BLOCK_MAGIC2(blocks, float_to_short); 69 GR_SWIG_BLOCK_MAGIC2(blocks, float_to_uchar); 70 GR_SWIG_BLOCK_MAGIC2(blocks, int_to_float); 71 GR_SWIG_BLOCK_MAGIC2_TMPL(blocks, integrate_ss, integrate<std::int16_t>); 72 GR_SWIG_BLOCK_MAGIC2_TMPL(blocks, integrate_ii, integrate<std::int32_t>); 73 GR_SWIG_BLOCK_MAGIC2_TMPL(blocks, integrate_ff, integrate<float>); 74 GR_SWIG_BLOCK_MAGIC2_TMPL(blocks, integrate_cc, integrate<gr_complex>); 75 GR_SWIG_BLOCK_MAGIC2(blocks, interleave); 76 GR_SWIG_BLOCK_MAGIC2(blocks, interleaved_short_to_complex); 77 GR_SWIG_BLOCK_MAGIC2(blocks, interleaved_char_to_complex); 78 GR_SWIG_BLOCK_MAGIC2(blocks, keep_m_in_n); 79 GR_SWIG_BLOCK_MAGIC2(blocks, keep_one_in_n); 80 GR_SWIG_BLOCK_MAGIC2(blocks, lfsr_32k_source_s); 81 GR_SWIG_BLOCK_MAGIC2_TMPL(blocks, max_ff, max_blk<float>); 82 GR_SWIG_BLOCK_MAGIC2_TMPL(blocks, max_ii, max_blk<std::int32_t>); 83 GR_SWIG_BLOCK_MAGIC2_TMPL(blocks, max_ss, max_blk<std::int16_t>); 84