GNU Radio 3.6.5 C++ API
|
00001 #include <gr_core_api.h> 00002 /* User include file for the Reed-Solomon codec 00003 * Copyright 2002, Phil Karn KA9Q 00004 * May be used under the terms of the GNU General Public License (GPL) 00005 */ 00006 00007 /* General purpose RS codec, 8-bit symbols */ 00008 GR_CORE_API void encode_rs_char(void *rs,unsigned char *data,unsigned char *parity); 00009 GR_CORE_API int decode_rs_char(void *rs,unsigned char *data,int *eras_pos, 00010 int no_eras); 00011 GR_CORE_API void *init_rs_char(unsigned int symsize,unsigned int gfpoly, 00012 unsigned int fcr,unsigned int prim,unsigned int nroots); 00013 GR_CORE_API void free_rs_char(void *rs); 00014 00015 /* General purpose RS codec, integer symbols */ 00016 GR_CORE_API void encode_rs_int(void *rs,int *data,int *parity); 00017 GR_CORE_API int decode_rs_int(void *rs,int *data,int *eras_pos,int no_eras); 00018 GR_CORE_API void *init_rs_int(unsigned int symsize,unsigned int gfpoly,unsigned int fcr, 00019 unsigned int prim,unsigned int nroots); 00020 GR_CORE_API void free_rs_int(void *rs); 00021 00022 /* CCSDS standard (255,223) RS codec with conventional (*not* dual-basis) 00023 * symbol representation 00024 */ 00025 GR_CORE_API void encode_rs_8(unsigned char *data,unsigned char *parity); 00026 GR_CORE_API int decode_rs_8(unsigned char *data,int *eras_pos,int no_eras); 00027 00028 /* Tables to map from conventional->dual (Taltab) and 00029 * dual->conventional (Tal1tab) bases 00030 */ 00031 extern unsigned char Taltab[],Tal1tab[];