decode_rs8 — Decode codeword (8bit data width)
int decode_rs8 ( | struct rs_control * | rs, |
uint8_t * | data, | |
uint16_t * | par, | |
int | len, | |
uint16_t * | s, | |
int | no_eras, | |
int * | eras_pos, | |
uint16_t | invmsk, | |
uint16_t * | corr) ; |
rs
the rs control structure
data
data field of a given type
par
received parity data field
len
data length
s
syndrome data field (if NULL, syndrome is calculated)
no_eras
number of erasures
eras_pos
position of erasures, can be NULL
invmsk
invert data mask (will be xored on data, not on parity!)
corr
buffer to store correction bitmask on eras_pos