EasyManua.ls Logo

Fastech Ezi-Step Plus-R

Fastech Ezi-Step Plus-R
114 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
- 9 -
9
Communication Protocols
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)
{
wCrc >>= 1;
wCrc ^= POLYNOMIAL;
}
else
{
// Just rotate it
wCrc >>= 1;
}
}
}
return wCrc;
}

Table of Contents

Related product manuals