diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2012-11-12 20:36:05 -0800 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2012-11-12 20:36:05 -0800 |
commit | ce1213e615023fa5c43f75ba2d2ec54649025b8f (patch) | |
tree | 8567615201922dc4f1196a965161f4bba0e24dd7 /gnuradio-core/src/lib/reed-solomon/fixed.h | |
parent | 5b568abe194f027860670317915c27c174fab52e (diff) |
fec: add new top-level component for FEC blocks
Removed viterbi and reed-solomon from gnuradio-core
Diffstat (limited to 'gnuradio-core/src/lib/reed-solomon/fixed.h')
-rw-r--r-- | gnuradio-core/src/lib/reed-solomon/fixed.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/gnuradio-core/src/lib/reed-solomon/fixed.h b/gnuradio-core/src/lib/reed-solomon/fixed.h deleted file mode 100644 index 30091e7bf3..0000000000 --- a/gnuradio-core/src/lib/reed-solomon/fixed.h +++ /dev/null @@ -1,40 +0,0 @@ -/* Configure the RS codec with fixed parameters for CCSDS standard - * (255,223) code over GF(256). Note: the conventional basis is still - * used; the dual-basis mappings are performed in [en|de]code_rs_ccsds.c - * - * Copyright 2002 Phil Karn, KA9Q - * May be used under the terms of the GNU General Public License (GPL) - */ -#define DTYPE unsigned char - -#include <gr_core_api.h> - -static inline int mod255(int x){ - while (x >= 255) { - x -= 255; - x = (x >> 8) + (x & 255); - } - return x; -} -#define MODNN(x) mod255(x) - -extern unsigned char CCSDS_alpha_to[]; -extern unsigned char CCSDS_index_of[]; -extern unsigned char CCSDS_poly[]; - -#define MM 8 -#define NN 255 -#define ALPHA_TO CCSDS_alpha_to -#define INDEX_OF CCSDS_index_of -#define GENPOLY CCSDS_poly -#define NROOTS 32 -#define FCR 112 -#define PRIM 11 -#define IPRIM 116 -#define A0 (NN) - -#define ENCODE_RS encode_rs_8 -#define DECODE_RS decode_rs_8 - -GR_CORE_API void ENCODE_RS(DTYPE *data,DTYPE *parity); -GR_CORE_API int DECODE_RS(DTYPE *data, int *eras_pos, int no_eras);
\ No newline at end of file |