EasyManuals Logo
Home>Kipor>Controller>KP310V1.0

Kipor KP310V1.0 User Manual

Kipor KP310V1.0
36 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #32 background imageLoading...
Page #32 background image
KP310V1.0 Controller Operation Manual
- 30 -
Appendix 2 CRC16-CCITT
/*******************************************************************
Function: generate CRC16CCITT code
Input: p = mouse cursor points to first byte
DataLen =data length
Output: CRC16CCITT
*******************************************************************/
Unsigned int CRC16CCITT (unsigned char *p, unsigned int DataLen)
{
Unsigned int crc16=0;
Unsigned int i;
Unsigned char b;
for (i=0;i<DataLen;i++)
{
b=(unsigned char)(crc16>>8);
crc16<<=8;
crc16^= CRC16CCITT [b^*p];
p++;
}
return crc16;
}

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Kipor KP310V1.0 and is the answer not in the manual?

Kipor KP310V1.0 Specifications

General IconGeneral
BrandKipor
ModelKP310V1.0
CategoryController
LanguageEnglish