diff options
author | Tom Rondeau <trondeau@vt.edu> | 2011-07-24 13:25:27 -0400 |
---|---|---|
committer | Tom Rondeau <trondeau@vt.edu> | 2011-07-24 13:25:27 -0400 |
commit | 1cb52da49230c64c3719b4ab944ba1cf5a9abb92 (patch) | |
tree | 4c8b5c27f529601b3d24e5650fbb38441a08f27f /gr-digital/swig | |
parent | 03e8904ef8800a96cad1d3131eb5cf351b5d4fb5 (diff) |
digital: moved CRC32 from gnuradio-core to gr-digital. Also added QA code for it.
Diffstat (limited to 'gr-digital/swig')
-rw-r--r-- | gr-digital/swig/Makefile.am | 1 | ||||
-rw-r--r-- | gr-digital/swig/digital_crc32.i | 27 | ||||
-rw-r--r-- | gr-digital/swig/digital_swig.i | 2 |
3 files changed, 30 insertions, 0 deletions
diff --git a/gr-digital/swig/Makefile.am b/gr-digital/swig/Makefile.am index df8f184b3f..0a4176fc1c 100644 --- a/gr-digital/swig/Makefile.am +++ b/gr-digital/swig/Makefile.am @@ -67,6 +67,7 @@ digital_swig_swiginclude_headers = \ digital_correlate_access_code_bb.i \ digital_costas_loop_cc.i \ digital_cma_equalizer_cc.i \ + digital_crc32.i \ digital_lms_dd_equalizer_cc.i \ digital_kurtotic_equalizer_cc.i diff --git a/gr-digital/swig/digital_crc32.i b/gr-digital/swig/digital_crc32.i new file mode 100644 index 0000000000..806bfad6a0 --- /dev/null +++ b/gr-digital/swig/digital_crc32.i @@ -0,0 +1,27 @@ +/* -*- c++ -*- */ +/* + * Copyright 2005,2011 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. + */ + +%rename(update_crc32) digital_update_crc32; +%rename(crc32) digital_crc32; + +unsigned int digital_update_crc32(unsigned int crc, const std::string buf); +unsigned int digital_crc32(const std::string buf); diff --git a/gr-digital/swig/digital_swig.i b/gr-digital/swig/digital_swig.i index 700c540398..bc7c9b0d9e 100644 --- a/gr-digital/swig/digital_swig.i +++ b/gr-digital/swig/digital_swig.i @@ -31,6 +31,7 @@ #include "digital_constellation_receiver_cb.h" #include "digital_correlate_access_code_bb.h" #include "digital_costas_loop_cc.h" +#include "digital_crc32.h" #include "digital_kurtotic_equalizer_cc.h" #include "digital_lms_dd_equalizer_cc.h" %} @@ -44,6 +45,7 @@ %include "digital_constellation_receiver_cb.i" %include "digital_correlate_access_code_bb.i" %include "digital_costas_loop_cc.i" +%include "digital_crc32.i" %include "digital_kurtotic_equalizer_cc.i" %include "digital_lms_dd_equalizer_cc.i" |