⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 crc.h

📁 ST7540 Demo 下位机C程序
💻 H
字号:
//*********************************************************************************
//*               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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -