Listing 7: Byte at a time CRC8 calculation
// initialize crc8 to zero prior to first call void ow_docrc8(int bit) { if (bit) { if (crc8 & 1) crc8 ^= 0x19; } else { if ((crc8 &1) == 0) crc8 ^= 0x19; } if (crc8 & 1) crc8 = (crc8 >> 1) | 0x80; else crc8 = (crc8 >> 1) & ~0x80; }
Browse all jobs
Emulex seeking Senior Program Manager in Costa Mesa, CA
Accenture seeking Data Center Technology in Reston, VA
Eurotech seeking Sales Executive in Amaro, Italy
NYU Langone Medical Center seeking IS Manager in New York, NY