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
SEL seeking Integration / Automation Engineer in Charlotte, NC
ESRI seeking Business Manager - Support Services in Redlands, CA
Amcor PET Packaging seeking Facilities Engineer in Philadelphia, PA
Mentor Graphics seeking Embedded SW Tele-Sales in San Jose, CA