TuyaOS
include
components
tal_system_service
include
utilities
crc_8.h
1
/***********************************************************
2
* File: crc_8.h
3
* Author: nzy
4
* Date: 20170222
5
***********************************************************/
6
#ifndef _CRC_8_H
7
#define _CRC_8_H
8
9
#ifdef __cplusplus
10
extern
"C"
{
11
#endif
12
13
#ifdef __CRC_8_GLOBALS
14
#define __CRC_8_MODULE_EXT
15
#else
16
#define __CRC_8_MODULE_EXT extern
17
#endif
18
19
/***********************************************************
20
*************************micro define***********************
21
***********************************************************/
22
23
/***********************************************************
24
*************************variable define********************
25
***********************************************************/
26
27
/***********************************************************
28
*************************function define********************
29
***********************************************************/
30
/***********************************************************
31
* Function: get_crc_8
32
* Input: none
33
* Output: none
34
* Return: none
35
***********************************************************/
36
__CRC_8_MODULE_EXT \
37
unsigned
char
get_crc_8(
unsigned
char
*data,
unsigned
short
size);
38
39
#ifdef __cplusplus
40
}
41
#endif
42
#endif
43
制作者
1.9.4