feat: 增加通信帧提取功能

This commit is contained in:
bmy
2024-02-15 22:50:20 +08:00
parent 85fe5a27df
commit 1e982b4954
18 changed files with 1154 additions and 29 deletions

9
3rd-lib/crc16/crc16.h Normal file
View 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