上传者: u011110775
|
上传时间: 2022-01-22 21:03:02
|
文件大小: 18KB
|
文件类型: VI
unsigned int crc_cal16 (unsigned char *snd, unsigned char num){unsigned int c,crc=0xFFFF;for(i = 0; i < num; i ++){c = snd[i] & 0x00FF;crc ^= c;for(j = 0;j >=1;crc^=0xA001;}else crc>>=1;}} return(crc);}