Function mlx9064x::mlx90641::hamming::add_checksum[][src]

pub fn add_checksum(word: u16) -> Result<u16, LibraryError>
Expand description

Compute and add the Hamming code to a word

A Hamming code covering the lower eleven bits, with the code in the upper five bits is returned. The bits that will be used for the code must be 0 when given, otherwise an error is returned.