20231023_InSituLab_emb/InsituLabProject_QRS/Src/Usr/Tool/ToolCheck.h
Rjh913828050 4e26d518da 类型:更细
内容:更新十四五程序
人员:任家豪
2024-07-31 08:56:07 +08:00

13 lines
482 B
C

#ifndef _TOOL_CHECK_H_
#define _TOOL_CHECK_H_
/* 8位异或校验代码 */
void ToolCheckXor(unsigned char *Buf, unsigned int BufLen , unsigned char *Xor);
/* 8位校验和 */
void ToolCheckSum(unsigned char *Buf, unsigned int BufLen , unsigned char *Sum);
/* CRC 0x31校验 */
void ToolCheckCrc8_0x31(unsigned char *Buf, unsigned int BufLen , unsigned char *Crc);
/* CRC16 modbus */
void ToolCheckCrc8_0x8005(unsigned char *Buf, unsigned int BufLen , unsigned short *Crc);
#endif