Go to the source code of this file.
Functions | |
void | hamming_do (uint32_t *frame) |
uint8_t | hamming_undo (uint32_t *frame) |
void hamming_do | ( | uint32_t * | frame | ) |
Encode the frame (the 24 LSB bits) into a 29 bits frame with hamming error correction bits. The 3 MSB bits are not used.
Definition at line 299 of file hamming.c.
References hamming_expand(), and hamming_process().
uint8_t hamming_undo | ( | uint32_t * | frame | ) |
Decode the 29 bits frame into a 24 bits one. If an error occurs, the function tries to correct it and returns a positive value. If there is no error, the function returns 0.
Definition at line 306 of file hamming.c.
References hamming_correct(), hamming_shrink(), and hamming_unprocess().