for (iBit = 0; iBit <= 7; iBit++)
{
/* If the LSB is 1, shift the CRC and XOR the polynomial mask with the CRC */
// Note - the bit test is performed before the rotation, so can't move the << here
if (wCrc & 0x0001)
{
}
else
{
}
}
}
return wCrc;
}
wCrc >>= 1;
wCrc ^= POLYNOMIAL;
// Just rotate it
wCrc >>= 1;
- 9 -
Communication Protocols
9
Need help?
Do you have a question about the Ezi-Step Plus-R and is the answer not in the manual?