Zebra A300 Specifications Page 380

  • Download
  • Add to my manuals
  • Print
  • Page
    / 396
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 379
Code for Calculating the CRC for the
Zebra Protocol
/********************************************************
*
* name: do_crc_ccitt
*
* description: Calculates a 16 bit cyclic redundancy check
* character using the CCITT polynomial
* X**16 + X**12 + X**5 + 1 which translates
* to the magic number 0x1021.
*
* parameters: crc -- the check character that is being
* accumulated.
* chr -- the character being added to the crc
*
* returns: the new crc
*
*
* date: 26 September 1991
*
********************************************************/
const UWORD ccitt_table[256] =
{
/* 0 -- */ 0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50A5, 0x60C6, 0x70E7,
/* 8 -- */ 0x8108, 0x9129, 0xA14A, 0xB16B, 0xC18C, 0xD1AD, 0xE1CE, 0xF1EF,
/* 16 -- */ 0x1231, 0x0210, 0x3273, 0x2252, 0x52B5, 0x4294, 0x72F7, 0x62D6,
/* 24 -- */ 0x9339, 0x8318, 0xB37B, 0xA35A, 0xD3BD, 0xC39C, 0xF3FF, 0xE3DE,
/* 32 -- */ 0x2462, 0x3443, 0x0420, 0x1401, 0x64E6, 0x74C7, 0x44A4, 0x5485,
/* 40 -- */ 0xA56A, 0xB54B, 0x8528, 0x9509, 0xE5EE, 0xF5CF, 0xC5AC, 0xD58D,
/* 48 -- */ 0x3653, 0x2672, 0x1611, 0x0630, 0x76D7, 0x66F6, 0x5695, 0x46B4,
/* 56 -- */ 0xB75B, 0xA77A, 0x9719, 0x8738, 0xF7DF, 0xE7FE, 0xD79D, 0xC7BC,
/* 64 -- */ 0x48C4, 0x58E5, 0x6886, 0x78A7, 0x0840, 0x1861, 0x2802, 0x3823,
/* 72 -- */ 0xC9CC, 0xD9ED, 0xE98E, 0xF9AF, 0x8948, 0x9969, 0xA90A, 0xB92B,
/* 80 -- */ 0x5AF5, 0x4AD4, 0x7AB7, 0x6A96, 0x1A71, 0x0A50, 0x3A33, 0x2A12,
/* 88 -- */ 0xDBFD, 0xCBDC, 0xFBBF, 0xEB9E, 0x9B79, 0x8B58, 0xBB3B, 0xAB1A,
/* 96 -- */ 0x6CA6, 0x7C87, 0x4CE4, 0x5CC5, 0x2C22, 0x3C03, 0x0C60, 0x1C41,
/* 104 -- */ 0xEDAE, 0xFD8F, 0xCDEC, 0xDDCD, 0xAD2A, 0xBD0B, 0x8D68, 0x9D49,
/* 112 -- */ 0x7E97, 0x6EB6, 0x5ED5, 0x4EF4, 0x3E13, 0x2E32, 0x1E51, 0x0E70,
APPENDIX G 371
Error Detection Protocol
Page view 379
1 2 ... 375 376 377 378 379 380 381 382 383 384 385 ... 395 396

Comments to this Manuals

Kathi 19 Mar 2024 | 06:41:12

15 Undeniable Reasons To Love Tiktokpornstar tiktokpornstar

Jonah 04 Apr 2024 | 17:03:08

What Do You Need To Know To Be All Set To Top Pornstars Kayleigh Wanless top pornstars kayleigh Wanless