Module mlx9064x::mlx90641::hamming [−][src]
Expand description
MLX90641 EEPROM Hamming code
The MLX90641 encodes data with a (16, 11) Hamming code ((15, 11) with an extra parity bit) and all parity bits moved to the most significant bits.
Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Role | P4 | P3 | P2 | P1 | P0 | D10 | D9 | D8 | D7 | D6 | D5 | D4 | D3 | D2 | D1 | D0 |
P0 | x | x | x | x | x | x | x | |||||||||
P1 | x | x | x | x | x | x | x | |||||||||
P2 | x | x | x | x | x | x | x | |||||||||
P3 | x | x | x | x | x | x | x | |||||||||
P4 | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x |
Functions
Compute and add the Hamming code to a word
Validate the checksum used for the MLX90641 EEPROM