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
Shure Incorporated seeking Project Manager in Niles, IL
Agilent Technologies seeking NPI Project Manager in Shanghai, CN
Agilent Technologies seeking Manufacturing Technician in Chandler, AR
Videon Central seeking Software Engineer in State College, PA