提交 | 用户 | age
|
8b51c7
|
1 |
|
Q |
2 |
|
|
3 |
#ifndef __SLP_H_V10__ |
|
4 |
#define __SLP_H_V10__ |
|
5 |
typedef unsigned char uchar; |
|
6 |
|
|
7 |
enum SLPCmds |
|
8 |
{ |
|
9 |
ST_M = 0x49, |
|
10 |
ST_S = 0x69, |
|
11 |
EDsign = 0x0d, |
|
12 |
}; |
|
13 |
|
|
14 |
typedef struct tagSLPPacket{ |
|
15 |
uchar ST; |
|
16 |
uchar Dst; |
|
17 |
uchar Data; |
|
18 |
uchar BCC; |
|
19 |
// uchar ED; |
|
20 |
}stSLPPacket; |
|
21 |
|
|
22 |
extern uchar bSLPMaster; |
|
23 |
extern uchar nStation; |
|
24 |
extern uchar SLPinputB; |
|
25 |
extern uchar SLPoutputB; |
|
26 |
extern uchar SLPErrSign; |
|
27 |
|
|
28 |
void SLPparsePacket(char * pBuf, uchar len1); |
|
29 |
void SLPMasterSendPacket(void); |
|
30 |
void SLPProcess(void); |
|
31 |
|
|
32 |
#endif /* __SLP_H_V10__ */ |