blob: 5a2ec70102671a6423474e8e263be344d5783b48 [file] [log] [blame]
/* This function wraps around the fixed 8-bit encoder, performing the
* basis transformations necessary to meet the CCSDS standard
* Copyright 2002, Phil Karn, KA9Q
* fixed bug Aug 2007
* May be used under the terms of the GNU Lesser General Public License (LGPL)
#include "ccsds.h"
#include "fec.h"
void encode_rs_ccsds(data_t *data,data_t *parity,int pad){
int i;
data_t cdata[NN-NROOTS];
/* Convert data from dual basis to conventional */
cdata[i] = Tal1tab[data[i]];
/* Convert parity from conventional to dual basis */
parity[i] = Taltab[parity[i]];