5 - 15
IP
N 07
4-
51
1-
P1
C
SQM-160 Operating Manual
short crc;
public:
short calcCRC( unsigned char * str)
{
int length = (str != NULL) ? 1 + str[1] - 34 : 0;
if (length > 0) {
crc = (short) 0x3fff;
for (int jx = 1; jx <= length; jx++) {
crc = (short) (crc ^ (short) str[jx]);
for (int ix = 0; ix < 8; ix++) {
short tmpCRC = crc;
crc = (short) (crc >> 1);
if ((tmpCRC & 0x1) == 1) {
crc = (short) (crc ^ 0x2001);
}
}
crc = (short) (crc & 0x3fff);
}
}
return crc;
}
unsigned char crc2() {
unsigned char val = (unsigned char) (((crc >> 7) & 0x7f) +
34);
return val;
}
unsigned char crc1() {
unsigned char val = (unsigned char) ((crc & 0x7f) + 34);
return val;
}
};
Summary of Contents for SQM-160
Page 1: ...O P E R A T I N G M A N U A L SQM 1 60 Multi Film Rate Thickness Monitor IPN 074 511 P1C ...
Page 2: ......
Page 5: ......
Page 6: ......
Page 8: ......
Page 22: ...1 10 IPN 074 511 P1C SQM 160 Operating Manual This page is intentionally blank ...
Page 30: ...2 8 IPN 074 511 P1C SQM 160 Operating Manual This page is intentionally blank ...
Page 60: ...4 12 IPN 074 511 P1C SQM 160 Operating Manual This page is intentionally blank ...
Page 76: ...5 16 IPN 074 511 P1C SQM 160 Operating Manual This page is intentionally blank ...
Page 98: ...6 22 IPN 074 511 P1C SQM 160 Operating Manual This page is intentionally blank ...
Page 110: ...8 8 IPN 074 511 P1C SQM 160 Operating Manual This page is intentionally blank ...
Page 120: ...A 10 IPN 074 511 P1C SQM 160 Operating Manual This page is intentionally blank ...