Download Print this page

Pentax DSI-200 Series User Manual page 158

Advertisement

The CRC simple function is as follows: unsigned int crc_chek
value(unsigned char *data value, unsigned char length){
unsigned int crc value=0xFFFF;
int i;
while(length--)
^0xa001;{
}
}
return(crc_value);
}
crc_value^=*data_value++;
for(i=0;i<8;i++)
if(crc_value&0x0001)
=(crc_value>>1)
}
else
{
}
}
158
{
crc_value=crc_value>>1;
{

Hide quick links:

Advertisement

loading