GNU Radio Manual and C++ API Reference  3.8.1.0
The Free & Open Software Radio Ecosystem
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,
11  unsigned int gfpoly,
12  unsigned int fcr,
13  unsigned int prim,
14  unsigned int nroots);
15 FEC_API void free_rs_char(void* rs);
16 
17 /* General purpose RS codec, integer symbols */
18 FEC_API void encode_rs_int(void* rs, int* data, int* parity);
19 FEC_API int decode_rs_int(void* rs, int* data, int* eras_pos, int no_eras);
20 FEC_API void* init_rs_int(unsigned int symsize,
21  unsigned int gfpoly,
22  unsigned int fcr,
23  unsigned int prim,
24  unsigned int nroots);
25 FEC_API void free_rs_int(void* rs);
26 
27 /* CCSDS standard (255,223) RS codec with conventional (*not* dual-basis)
28  * symbol representation
29  */
30 FEC_API void encode_rs_8(unsigned char* data, unsigned char* parity);
31 FEC_API int decode_rs_8(unsigned char* data, int* eras_pos, int no_eras);
32 
33 /* Tables to map from conventional->dual (Taltab) and
34  * dual->conventional (Tal1tab) bases
35  */
36 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)