first commit
This commit is contained in:
14
Middlewares/Modbus/CRC16.h
Normal file
14
Middlewares/Modbus/CRC16.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef __CRC16_H__
|
||||
#define __CRC16_H__
|
||||
|
||||
|
||||
|
||||
#include "./SYSTEM/sys/sys.h"
|
||||
#include "./SYSTEM/delay/delay.h"
|
||||
|
||||
#define TRUE (1) /**< 真值定义 */
|
||||
#define FALSE (0) /**< 假值定义 */
|
||||
|
||||
uint16_t Calculate_CRC(uint8_t *puchMsg, uint16_t usDataLen);
|
||||
uint8_t Check_CRC(uint8_t *buf, uint16_t len);
|
||||
#endif
|
||||
Reference in New Issue
Block a user