16
Types : 0x07
Lens : 0x01
Address: 0x0000~0x00FF, starting register address.
Datas : 0x00~0xFF, number of registers to be read. When Datas=0x00, 256 contiguous
registers are to be read.
FCS : CRC-CCITT checksum, 2 bytes.
Computation sequence: Types+ Lens+Datas;
polynomial: X
16
+X
12
+X
5
+1 (0x1021), initial value: 0x0000.
The following C language program is provided for reference.
unsigned int crc_cal_by_bit(unsigned char* ptr, unsigned int len)
{
unsigned int crc = 0;
while(len-- != 0)
{
for(unsigned char i = 0x80; i != 0; i /= 2)
{
crc *= 2;
if((crc&0x10000) !=0)
crc ^= 0x11021;
if((*ptr&i) != 0)
crc ^= 0x1021;
}
ptr++;
}
return crc;
}
Содержание NLS-FM30 Series
Страница 1: ...NLS FM30 Series Fixed Mount Barcode Scanner User Guide...
Страница 14: ...6 Chapter 6 FM30 Scanner Overview FM3055 Scanner FM3050 Scanner...
Страница 18: ...10 IR Triggering Range...
Страница 19: ...11 Optics Horizontal Vertical...
Страница 49: ...41 Good Read Beep Frequency Duration Low Frequency Medium Frequency High Frequency 40ms 80ms 120ms...
Страница 52: ...44 A B C D E F...
Страница 59: ...51 USB Country Keyboard Types 1 U S 2 Belgium 3 Brazil 4 Canada 5 Czech 6 Denmark 7 Finland 8 France...
Страница 61: ...53 19 Romania 20 Russia 21 Slovakia 22 Spain 23 Sweden 24 Switzerland 25 Turkey1 26 Turkey 2 27 UK 28 Japan...