init_rs — Find a matching or allocate a new rs control structure
struct rs_control * init_rs ( | int symsize, |
| int gfpoly, | |
| int fcr, | |
| int prim, | |
int nroots); |
int symsizethe symbol size (number of bits)
int gfpolythe extended Galois field generator polynomial coefficients, with the 0th coefficient in the low order bit. The polynomial must be primitive;
int fcrthe first consecutive root of the rs code generator polynomial in index form
int primprimitive element to generate polynomial roots
int nrootsRS code generator polynomial degree (number of roots)