crc.h
来自「ST7540 Demo 下位机C程序」· C头文件 代码 · 共 24 行
H
24 行
//*********************************************************************************
//* ST 7538 DEMOBOARD SOFTWARE CRC.h *
//* *
//* CRC functions V1.2 *
//*********************************************************************************
/**********************************************************************************
* Description:
* This function generates the 16 bit CRC 16 15 2
* using the following polynom: X + X + X + 1
**********************************************************************************/
extern unsigned int dll_CalcCRC(unsigned char *buf, unsigned char n);
/**********************************************************************************
* This function generates the 8 bit CRC 6 5 4 3
* using the following polynom: X + X + X + X + 1
**********************************************************************************/
unsigned char CRC( unsigned char char_in,unsigned char crc_in, char num);
/*********************************************************************************
* Correction table. The table is used char Check_frame(void) for correction message
* which has wrong FCS.
**********************************************************************************/
extern const unsigned int CorectTab[256];
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?