1 /* This function wraps around the fixed 8-bit decoder, performing the
2 * basis transformations necessary to meet the CCSDS standard
4 * Copyright 2002, Phil Karn, KA9Q
5 * May be used under the terms of the GNU General Public License (GPL)
11 int decode_rs_ccsds(unsigned char *data,int *eras_pos,int no_eras){
13 unsigned char cdata[NN];
15 /* Convert data from dual basis to conventional */
17 cdata[i] = Tal1tab[data[i]];
19 r = decode_rs_8(cdata,eras_pos,no_eras);
22 /* Convert from conventional to dual basis */
24 data[i] = Taltab[cdata[i]];