encode_rs8 — Calculate the parity for data values (8bit data width)
int encode_rs8 ( | struct rs_control * | rs, |
| uint8_t * | data, | |
| int | len, | |
| uint16_t * | par, | |
| uint16_t | invmsk); |
rsthe rs control structure
datadata field of a given type
lendata length
parparity data, must be initialized by caller (usually all 0)
invmskinvert data mask (will be xored on data)