62
SE-602-N User Manual
1.2.3 CRC
Protocol uses 16-bit CCITT CRC to verify data integrity.
P(x) = X
16
+X
12
+X
5
+1.
unsigned
calc_crc(
unsigned
char
*data,
unsigned
n,
unsigned
start) {
unsigned
I, k, q, c, crcval;
crcval=start;
for
(I=0; I<n; I++) {
c=data(I) & 0xFF;
q=(crcval^c) & 0x0F;
crcval=(crcval>>4)^(q*0x1081);
}
return
crcval;
}
Summary of Contents for SE-602-N
Page 1: ...SE 602 N User Manual SE 602 N User Manual...
Page 2: ...ii SE 602 N User Manual Revision Release Date V1 0 2016 01 18...
Page 8: ......
Page 12: ...4 SE 602 N User Manual 1 2 3 I O View SE 602 N front side SE 602 N rear side...
Page 20: ...12 SE 602 N User Manual IMBD602 Board Dimensions...