H
howwise
Unregistered / Unconfirmed
GUEST, unregistred user!
面是C语言CRC算法的大概写法,硬件厂商提供的,我想把他转成PASCAL的,可是就真的不明白0xFFFFU是什么东西
const unsigned int crctable[256]=
{0x0000,0x1021,0x2042,...0x0Eb2,0x0ED1,0x1EF0
};
void rx_int(void)
{
unsigned int iwork;
rx_index =0
rx_buff[rx_index++] = rxdata;
iwork = crctalbe[ (unsigned char) (0xFFFFU >> 8) ^ Rxdata]
crc_rxvalue_uart1 =(0xFFFFU << 8) ^ iwork;
}
const unsigned int crctable[256]=
{0x0000,0x1021,0x2042,...0x0Eb2,0x0ED1,0x1EF0
};
void rx_int(void)
{
unsigned int iwork;
rx_index =0
rx_buff[rx_index++] = rxdata;
iwork = crctalbe[ (unsigned char) (0xFFFFU >> 8) ^ Rxdata]
crc_rxvalue_uart1 =(0xFFFFU << 8) ^ iwork;
}