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);
the rs control structure
data field of a given type
received parity data field
data length
syndrome data field (if NULL, syndrome is calculated)
number of erasures
position of erasures, can be NULL
invert data mask (will be xored on data, not on parity!)
buffer to store correction bitmask on eras_pos
Each field in the data array contains up to symbol size bits of valid data. Returns the number of corrected bits or -EBADMSG for uncorrectable errors.