Module medium

Source
Expand description

Encoding and decoding of the (24, 16, 9) code.

Functionsยง

decode
Try to decode the given 24-hexbit word to the nearest codeword, correcting up to 4 hexbit errors (up to 24 bit errors.)
encode
Calculate the 8 parity hexbits for the first 16 data hexbits in the given buffer, placing the parity hexbits at the end of the buffer.