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.

Bits covered by each parity bit
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 xx xx xxx
P1 xx xx xxx
P2 xxx x xxx
P3 xxx xxxx
P4xxx xxxx xxxx xxxx

Functions

Compute and add the Hamming code to a word

Validate the checksum used for the MLX90641 EEPROM