GNU Radio 3.7.2 C++ API
rs.h
Go to the documentation of this file.
1 #include <gnuradio/fec/api.h>
2 /* User include file for the Reed-Solomon codec
3  * Copyright 2002, Phil Karn KA9Q
4  * May be used under the terms of the GNU General Public License (GPL)
5  */
6 
7 /* General purpose RS codec, 8-bit symbols */
8 FEC_API void encode_rs_char(void *rs,unsigned char *data,unsigned char *parity);
9 FEC_API int decode_rs_char(void *rs,unsigned char *data,int *eras_pos, int no_eras);
10 FEC_API void *init_rs_char(unsigned int symsize,unsigned int gfpoly,
11  unsigned int fcr,unsigned int prim,unsigned int nroots);
12 FEC_API void free_rs_char(void *rs);
13 
14 /* General purpose RS codec, integer symbols */
15 FEC_API void encode_rs_int(void *rs,int *data,int *parity);
16 FEC_API int decode_rs_int(void *rs,int *data,int *eras_pos,int no_eras);
17 FEC_API void *init_rs_int(unsigned int symsize,unsigned int gfpoly,unsigned int fcr,
18  unsigned int prim,unsigned int nroots);
19 FEC_API void free_rs_int(void *rs);
20 
21 /* CCSDS standard (255,223) RS codec with conventional (*not* dual-basis)
22  * symbol representation
23  */
24 FEC_API void encode_rs_8(unsigned char *data,unsigned char *parity);
25 FEC_API int decode_rs_8(unsigned char *data,int *eras_pos,int no_eras);
26 
27 /* Tables to map from conventional->dual (Taltab) and
28  * dual->conventional (Tal1tab) bases
29  */
30 extern unsigned char Taltab[],Tal1tab[];
FEC_API void encode_rs_8(unsigned char *data, unsigned char *parity)
FEC_API void encode_rs_char(void *rs, unsigned char *data, unsigned char *parity)
FEC_API void free_rs_int(void *rs)
FEC_API void * init_rs_char(unsigned int symsize, unsigned int gfpoly, unsigned int fcr, unsigned int prim, unsigned int nroots)
FEC_API int decode_rs_8(unsigned char *data, int *eras_pos, int no_eras)
#define FEC_API
Definition: gr-fec/include/gnuradio/fec/api.h:30
FEC_API void * init_rs_int(unsigned int symsize, unsigned int gfpoly, unsigned int fcr, unsigned int prim, unsigned int nroots)
unsigned char Tal1tab[]
FEC_API void free_rs_char(void *rs)
FEC_API int decode_rs_char(void *rs, unsigned char *data, int *eras_pos, int no_eras)
unsigned char Taltab[]
FEC_API void encode_rs_int(void *rs, int *data, int *parity)
FEC_API int decode_rs_int(void *rs, int *data, int *eras_pos, int no_eras)