feat: 增加通信帧提取功能
This commit is contained in:
9
3rd-lib/crc16/crc16.h
Normal file
9
3rd-lib/crc16/crc16.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#ifndef __CRC_16_H
|
||||
#define __CRC_16_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
extern uint16_t crc16(uint8_t *addr,uint32_t num); // 实时计算方式
|
||||
extern uint16_t crc16_check(uint8_t* addr, uint32_t num); // 查表计算方式
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user