27#define Hamming_ERROR_NONE 0
30#define Hamming_ERROR_SINGLEBIT 1
33#define Hamming_ERROR_ECC 2
36#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.