1 /* User include file for the Reed-Solomon codec
2 * Copyright 2002, Phil Karn KA9Q
3 * May be used under the terms of the GNU General Public License (GPL)
6 /* General purpose RS codec, 8-bit symbols */
7 void encode_rs_char(void *rs,unsigned char *data,unsigned char *parity);
8 int decode_rs_char(void *rs,unsigned char *data,int *eras_pos,
10 void *init_rs_char(unsigned int symsize,unsigned int gfpoly,
11 unsigned int fcr,unsigned int prim,unsigned int nroots);
12 void free_rs_char(void *rs);
14 /* General purpose RS codec, integer symbols */
15 void encode_rs_int(void *rs,int *data,int *parity);
16 int decode_rs_int(void *rs,int *data,int *eras_pos,int no_eras);
17 void *init_rs_int(unsigned int symsize,unsigned int gfpoly,unsigned int fcr,
18 unsigned int prim,unsigned int nroots);
19 void free_rs_int(void *rs);
21 /* CCSDS standard (255,223) RS codec with conventional (*not* dual-basis)
22 * symbol representation
24 void encode_rs_8(unsigned char *data,unsigned char *parity);
25 int decode_rs_8(unsigned char *data,int *eras_pos,int no_eras);
27 /* Tables to map from conventional->dual (Taltab) and
28 * dual->conventional (Tal1tab) bases
30 extern unsigned char Taltab[],Tal1tab[];