decode_rs16 — Decode codeword (16bit data width)
| int decode_rs16 ( | struct rs_control * rs, | 
| uint16_t * data, | |
| uint16_t * par, | |
| int len, | |
| uint16_t * s, | |
| int no_eras, | |
| int * eras_pos, | |
| uint16_t invmsk, | |
| uint16_t * corr ); | 
rsthe rs control structure
datadata field of a given type
parreceived parity data field
lendata length
ssyndrome data field (if NULL, syndrome is calculated)
no_erasnumber of erasures
eras_posposition of erasures, can be NULL
invmskinvert data mask (will be xored on data, not on parity!)
corrbuffer to store correction bitmask on eras_pos