manually merged with ARM version
This commit is contained in:
21
x502api-1.1.34/lib/crc/crc.h
Normal file
21
x502api-1.1.34/lib/crc/crc.h
Normal file
@ -0,0 +1,21 @@
|
||||
#ifndef CRC_H_
|
||||
#define CRC_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
/*===============================================================================================================*/
|
||||
extern unsigned short eval_crc16 (unsigned short crc, const unsigned char *msg, unsigned msg_len);
|
||||
extern unsigned short eval_crc16tbl (unsigned short crc, const unsigned char *msg, unsigned msg_len);
|
||||
extern unsigned char eval_crc8 (unsigned char crc, const unsigned char *msg, unsigned msg_len);
|
||||
extern unsigned short eval_modbuscrc (unsigned short init_crc, const unsigned char *msg, unsigned msg_len);
|
||||
#ifdef REV_CRC
|
||||
extern unsigned char eval_revcrc8 (unsigned char crc, const unsigned char *msg, unsigned msg_len);
|
||||
#endif
|
||||
/*===============================================================================================================*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user