-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomdefs.h
75 lines (71 loc) · 2.36 KB
/
comdefs.h
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#ifndef COMDEFS_H
#define COMDEFS_H
/*--------------------------------------------------------
Data field module -> host
---------------------------------------------------------*/
#define ID_RESET 0x01
#define ID_COM_STS 0x02
#define ID_SELFTEST 0x03
#define ID_CMD_ACK 0x04
#define ID_ECGWAVE 0x05//心电波形
#define ID_LEAD_STS 0x06
#define ID_HR 0x07//心率
#define ID_ST 0x0B
#define ID_ST_PATTERN 0x0C
#define ID_RESPWAVE 0x10 //呼吸波形
#define ID_RR 0x11//呼吸率
#define ID_APNEA 0x12
#define ID_CVA 0x13
#define ID_TEMP 0x15//体温
#define ID_TEMP_ETG 0x50
#define ID_SPO2_WAVE 0x16//氧饱和度
#define ID_SPO2_PR 0x17
#define ID_IBP_WAVE 0x18
#define ID_IBP_STS 0x19
#define ID_IBP_DATA 0x1A
#define ID_IBP_CAL 0x1B
#define ID_IBP_CAL_TIME 0x1C
#define ID_NBP_CUFPRE 0x20
#define ID_NBP_END 0x21
#define ID_NBP_RESULT1 0x22//收缩压舒张压
#define ID_NBP_RESULT2 0x23
#define ID_NBP_STS 0x24
//add new for glucose
#define ID_GLUCOSE 0x30
/*--------------------------------------------------------
Data field host -> module
---------------------------------------------------------*/
#define CMD_GET_POST_RESULT 0x40
#define CMD_PAT_TYPE 0x42
#define CMD_LEADSYSTEM 0x45
#define CMD_LEADTYPE 0x46
#define CMD_FILTER_MODE 0x47
#define CMD_ECG_GAIN 0x48
#define CMD_ECG_CAL 0x49
#define CMD_ECG_TRAP 0x4A
#define CMD_ID_PACE 0x4B
#define CMD_ST_ISO 0x4C
#define CMD_ECG_CHANNEL 0x4D
#define CMD_ECG_LEARN 0x4E
#define CMD_RESP_GAIN 0x50
#define CMD_RESP__TYPE 0x51
#define CMD_APNEA_ALM 0x52
#define CMD_TEMP_TYPE 0x53
#define CMD_SPO2 0x54
#define CMD_NBP_START 0x55
#define CMD_NBP_END 0x56
#define CMD_NBP_PERIOD 0x57
#define CMD_NBP_CAL 0x58
#define CMD_NBP_RESET 0x59
#define CMD_NBP_PNEUMATIC 0x5A
#define CMD_NBP_POLL_STATE 0x5B
#define CMD_NBP_PRE_PRESSURE 0x5C
#define CMD_NBP_CONTINUE 0x5D
#define CMD_NBP_GET_RESULT 0x5E
#define CMD_IBP_CHANNEL 0x60
#define CMD_IBP_ZERO 0x61
#define CMD_IBP_CAL1 0x62
#define CMD_IBP_CAL2 0x63
#define CMD_IBP_FILTER 0x64
#define CMD_IBP_POLL_STATE 0x65
#endif // COMDEFS_H