-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutil.h
More file actions
29 lines (22 loc) · 709 Bytes
/
Copy pathutil.h
File metadata and controls
29 lines (22 loc) · 709 Bytes
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
/*\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
UTIL.H
the common utilities of all files are saved in this file.
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\*/
#ifndef __UTIL_H__
#define __UTIL_H__
#ifdef __cplusplus
extern "C" {
#endif
extern U8 *DECODE_U16(U16 *val, U8 *mp);
extern U8 *DECODE_U24(U32 *val, U8 *mp);
extern U8 *DECODE_U32(U32 *val, U8 *mp);
extern U8 *ENCODE_U16(U8 *mp, U16 val);
extern U8 *ENCODE_U24(U8 *mp, U32 val);
extern U8 *ENCODE_U32(U8 *mp, U32 val);
extern void PRINT_MESSAGE(unsigned char*, int);
extern U16 ADD_CARRY_FOR_CHKSUM(U32 sum);
extern U16 CHECK_SUM(U32);
#ifdef __cplusplus
}
#endif
#endif