GNU Radio Manual and C++ API Reference 3.10.5.1
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 */
8FEC_API void encode_rs_char(void* rs, unsigned char* data, unsigned char* parity);
9FEC_API int decode_rs_char(void* rs, unsigned char* data, int* eras_pos, int no_eras);
10FEC_API void* init_rs_char(unsigned int symsize,
11 unsigned int gfpoly,
12 unsigned int fcr,
13 unsigned int prim,
14 unsigned int nroots);
15FEC_API void free_rs_char(void* rs);
16
17/* General purpose RS codec, integer symbols */
18FEC_API void encode_rs_int(void* rs, int* data, int* parity);
19FEC_API int decode_rs_int(void* rs, int* data, int* eras_pos, int no_eras);
20FEC_API void* init_rs_int(unsigned int symsize,
21 unsigned int gfpoly,
22 unsigned int fcr,
23 unsigned int prim,
24 unsigned int nroots);
25FEC_API void free_rs_int(void* rs);
26
27/* CCSDS standard (255,223) RS codec with conventional (*not* dual-basis)
28 * symbol representation
29 */
30FEC_API void encode_rs_8(unsigned char* data, unsigned char* parity);
31FEC_API int decode_rs_8(unsigned char* data, int* eras_pos, int no_eras);
32
33/* CCSDS standard (255,223) RS codec with dual-basis symbol representation
34 */
35FEC_API void encode_rs_ccsds(unsigned char* data, unsigned char* parity);
36FEC_API int decode_rs_ccsds(unsigned char* data, int* eras_pos, int no_eras);
37
38/* Tables to map from conventional->dual (Taltab) and
39 * dual->conventional (Tal1tab) bases
40 */
41extern unsigned char Taltab[], Tal1tab[];
#define FEC_API
Definition: gr-fec/include/gnuradio/fec/api.h:18
FEC_API int decode_rs_char(void *rs, unsigned char *data, int *eras_pos, int no_eras)
FEC_API int decode_rs_ccsds(unsigned char *data, int *eras_pos, int no_eras)
FEC_API void free_rs_int(void *rs)
FEC_API void encode_rs_ccsds(unsigned char *data, unsigned char *parity)
FEC_API void free_rs_char(void *rs)
FEC_API void * init_rs_int(unsigned int symsize, unsigned int gfpoly, unsigned int fcr, unsigned int prim, unsigned int nroots)
FEC_API void * init_rs_char(unsigned int symsize, unsigned int gfpoly, unsigned int fcr, unsigned int prim, unsigned int nroots)
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 int decode_rs_int(void *rs, int *data, int *eras_pos, int no_eras)
unsigned char Taltab[]
FEC_API int decode_rs_8(unsigned char *data, int *eras_pos, int no_eras)
FEC_API void encode_rs_int(void *rs, int *data, int *parity)
unsigned char Tal1tab[]
Definition: rs.h:41