Encodes and decodes data using Hamming 7,4 codes.
See src/test.py
# | Input | Output |
---|---|---|
0 | word / codeword | codeword / word |
1 | word / codeword | codeword / word |
2 | word / codeword | codeword / word |
3 | word / codeword | codeword / word |
4 | none / codeword | codeword / error |
5 | none / codeword | codeword / none |
6 | none / codeword | codeword / none |
7 | mode (0: encode, 1: decode) |