GNU Radio 2.x: rs.h Source File

Main Page | Modules | Namespace List | Class Hierarchy | Compound List | File List | Namespace Members | Compound Members | File Members

# rs.h

Go to the documentation of this file.

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