9 //////////////////////////////////////////////////////////
11 #define CRC_16_POLYNOMIAL 0x1021
12 #define CRC_16_L_POLYNOMIAL 0x8000
13 #define CRC_16_L_SEED 0x80
14 #define CRC_16_L_OK 0x00
15 #define HDLC_FLAG 0x7E
16 #define HDLC_ESCAPE 0x7D
17 #define HDLC_ESCAPE_MASK 0x20
18 #define CRC_CHECK_SIZE 0x02
22 ///////////////////////////////////////////////////////////
23 unsigned int crc_16_l_calc (char *buf_ptr,unsigned int len);
25 unsigned short frm_chk (const unsigned short *src, int len);
26 unsigned long Get_CheckSum (const unsigned char *src, int len);
30 #endif /* FDL_CRC_H */