-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalidation_deal.h
More file actions
29 lines (25 loc) · 1.05 KB
/
validation_deal.h
File metadata and controls
29 lines (25 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**
****************************(C) COPYRIGHT 2024 HZMI****************************
* @file vaildation_deal.c/h
* @brief УÑéËã·¨
* @note
* @history
* Version Date Author Modification
* V1.0.0 Aug-11-2024 ZSB 1. done
*
@verbatim
==============================================================================
==============================================================================
@endverbatim
****************************(C) COPYRIGHT 2024 HZMI****************************
*/
#ifndef __VALIDATION_H__
#define __VALIDATION_H__
unsigned char Check(const unsigned char *buf, int len) ;
unsigned char CheckXor(const char *strData,int len) ;
unsigned short int CRC(const unsigned char *buf, int leng) ;
unsigned short crc16(const unsigned char *data, int length) ;
unsigned char LRC(const unsigned char *auchMsg, unsigned short usDataLen) ;
unsigned short sumCheck(const unsigned char *data, int length) ;s
unsigned char iSumCheck(const unsigned char *buf, int len);
#endif