18 #ifndef ECC_HAMMING256_H
19 #define ECC_HAMMING256_H
28 #define Hamming_ERROR_NONE 0
31 #define Hamming_ERROR_SINGLEBIT 1
34 #define Hamming_ERROR_ECC 2
37 #define Hamming_ERROR_MULTIPLEBITS 3
void hamming_compute256x(const uint8_t *data, uint32_t size, uint8_t *code)
Computes 3-bytes hamming codes for a data block whose size is multiple of 256 bytes.
uint8_t hamming_verify256x(uint8_t *data, uint32_t size, const uint8_t *code)
Verifies 3-bytes hamming codes for a data block whose size is multiple of 256 bytes.