hj/t 212 crc

 

 

 

unsigned int calccrc(TCHAR * crcbuf,unsigned short num) { int i,k; unsigned short crc=0xffff; for (i=0;i>8; crc =crc ^crcbuf[i]; for (k = 0; k < 8; ++k) { if (crc & 1) crc = (crc >> 1) ^ 0xA001; else crc = (crc >> 1); } } return crc; }

你可能感兴趣的:(hj/t 212 crc)