[an error occurred while processing this directive]
|
unsigned char __fastcall DowCRC(unsigned char b)
{
char crc = 0;
for (int i = 0; i < 8; i++)
{
if ((b ^ crc) & 1)
crc = ((crc ^ 0x18) >> 1) | 0x80;
else
crc = (crc >> 1) & ~0x80;
b >>= 1;
}
return crc;
}
E-mail: info@telesys.ru