diff options
Diffstat (limited to 'gr-digital/swig')
-rw-r--r-- | gr-digital/swig/digital_cpmmod_bc.i | 40 | ||||
-rw-r--r-- | gr-digital/swig/digital_gmskmod_bc.i | 39 | ||||
-rw-r--r-- | gr-digital/swig/digital_swig.i | 7 |
3 files changed, 7 insertions, 79 deletions
diff --git a/gr-digital/swig/digital_cpmmod_bc.i b/gr-digital/swig/digital_cpmmod_bc.i deleted file mode 100644 index fa7c50da75..0000000000 --- a/gr-digital/swig/digital_cpmmod_bc.i +++ /dev/null @@ -1,40 +0,0 @@ -/* -*- c++ -*- */ -/* - * Copyright 2010 Free Software Foundation, Inc. - * - * This file is part of GNU Radio - * - * GNU Radio is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3, or (at your option) - * any later version. - * - * GNU Radio is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with GNU Radio; see the file COPYING. If not, write to - * the Free Software Foundation, Inc., 51 Franklin Street, - * Boston, MA 02110-1301, USA. - */ - -GR_SWIG_BLOCK_MAGIC(digital, cpmmod_bc) - -digital_cpmmod_bc_sptr -digital_make_cpmmod_bc(int type, float h, - unsigned samples_per_sym, - unsigned L, double beta=0.3); - -class digital_cpmmod_bc : public gr_hier_block2 -{ - private: - digital_cpmmod_bc(int type, float h, - unsigned samples_per_sym, - unsigned L, double beta); - - public: - std::vector<float> get_taps(); -}; - diff --git a/gr-digital/swig/digital_gmskmod_bc.i b/gr-digital/swig/digital_gmskmod_bc.i deleted file mode 100644 index ad7b82237e..0000000000 --- a/gr-digital/swig/digital_gmskmod_bc.i +++ /dev/null @@ -1,39 +0,0 @@ -/* -*- c++ -*- */ -/* - * Copyright 2010 Free Software Foundation, Inc. - * - * This file is part of GNU Radio - * - * GNU Radio is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3, or (at your option) - * any later version. - * - * GNU Radio is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with GNU Radio; see the file COPYING. If not, write to - * the Free Software Foundation, Inc., 51 Franklin Street, - * Boston, MA 02110-1301, USA. - */ - -GR_SWIG_BLOCK_MAGIC(digital, gmskmod_bc) - -digital_gmskmod_bc_sptr -digital_make_gmskmod_bc(unsigned samples_per_sym=2, - double bt=0.3, unsigned L=4); - -class digital_gmskmod_bc : public gr_hier_block2 -{ - private: - digital_cpmmod_bc(int type, float h, - unsigned samples_per_sym, - double beta, unsigned L); - - public: - std::vector<float> get_taps(); -}; - diff --git a/gr-digital/swig/digital_swig.i b/gr-digital/swig/digital_swig.i index 3c7c129077..1e29280167 100644 --- a/gr-digital/swig/digital_swig.i +++ b/gr-digital/swig/digital_swig.i @@ -35,6 +35,8 @@ //%include <gri_control_loop.i> +%include "gr_cpm.h" + // Used in the constellation objects %template(unsigned_int_vector) std::vector<unsigned int>; @@ -57,6 +59,7 @@ #include "digital/correlate_access_code_bb.h" #include "digital/correlate_access_code_tag_bb.h" #include "digital/costas_loop_cc.h" +#include "digital/cpmmod_bc.h" #include "digital/crc32.h" #include "digital/descrambler_bb.h" #include "digital/diff_decoder_bb.h" @@ -99,6 +102,7 @@ %include "digital/correlate_access_code_bb.h" %include "digital/correlate_access_code_tag_bb.h" %include "digital/costas_loop_cc.h" +%include "digital/cpmmod_bc.h" %include "digital/crc32.h" %include "digital/descrambler_bb.h" %include "digital/diff_decoder_bb.h" @@ -138,6 +142,7 @@ GR_SWIG_BLOCK_MAGIC2(digital, constellation_decoder_cb); GR_SWIG_BLOCK_MAGIC2(digital, correlate_access_code_bb); GR_SWIG_BLOCK_MAGIC2(digital, correlate_access_code_tag_bb); GR_SWIG_BLOCK_MAGIC2(digital, costas_loop_cc); +GR_SWIG_BLOCK_MAGIC2(digital, cpmmod_bc); GR_SWIG_BLOCK_MAGIC2(digital, descrambler_bb); GR_SWIG_BLOCK_MAGIC2(digital, diff_decoder_bb); GR_SWIG_BLOCK_MAGIC2(digital, diff_encoder_bb); @@ -160,5 +165,7 @@ GR_SWIG_BLOCK_MAGIC2(digital, probe_mpsk_snr_est_c); GR_SWIG_BLOCK_MAGIC2(digital, scrambler_bb); GR_SWIG_BLOCK_MAGIC2(digital, simple_framer); +GR_SWIG_BLOCK_MAGIC_FACTORY(digital, cpmmod_bc, gmskmod_bc); + // Properly package up constellation objects %include "constellation.i" |