static uint8_t CRC8_TAB[256] = { 0x00, 。。。。。。, 0x35 };
uint8_t Com_CalCrc8FromTab(uint8_t * pucBuf, uint16_t uwNum)
{
uint8_t ucCrc8 = 0;
uint8_t *pucTemp = pucBuf;
for (; uwNum > 0; uwNum–)
{
ucCrc8 = CRC8_TAB[(*pucTemp)^ucCrc8];
pucTemp++;
}
return (ucCrc8);
}