Home
last modified time | relevance | path

Searched refs:correction_code (Results 1 – 1 of 1) sorted by relevance

/bsp/samd21/sam_d2x_asflib/common/services/storage/ecc_hamming/
A Decc-sw.c222 uint8_t correction_code[3]; in verify256() local
233 if ((correction_code[0] == 0) && (correction_code[1] == 0) in verify256()
234 && (correction_code[2] == 0)) { in verify256()
244 byte = correction_code[0] & 0x80; in verify256()
245 byte |= ((correction_code[0] << 1) & 0x40); in verify256()
246 byte |= ((correction_code[0] << 2) & 0x20); in verify256()
247 byte |= ((correction_code[0] << 3) & 0x10); in verify256()
249 byte |= ((correction_code[1] >> 4) & 0x08); in verify256()
254 bit = (correction_code[2] >> 5) & 0x04; in verify256()
255 bit |= ((correction_code[2] >> 4) & 0x02); in verify256()
[all …]

Completed in 3 milliseconds