Download Print this page

Feig Electronic OBID i-scan ID ISC PRHD102 Manual page 18

Standard-reader

Advertisement

®
OBID i-scan
3.2. CRC16 Calculation Algorithm
16
Polynom:
x
Start Value:
0xFFFF
C-Example:
unsigned int crc = CRC_PRESET;
for (i = 0; i < cnt; i++)
{
crc ^= DATA[i];
for (j = 0; j < 8; j++)
{
}
}
FEIG ELECTRONIC GmbH
+ 1 ⇒ CRC_POLYNOM = 0x8408;
12
5
+ x
+ x
⇒ CRC_PRESET = 0xFFFF;
/* cnt = number of protocol bytes without CRC */
if (crc & 0x0001)
crc = (crc >> 1) ^ CRC_POLYNOM;
else
crc = (crc >> 1);
Manual
Page 18 of 125
ID ISC.PRHD102
H71101-2e-ID-B.doc

Advertisement

loading