-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEnums.h
151 lines (140 loc) · 2.26 KB
/
Enums.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
#pragma once
enum ePairState
{
PairState_Unpair = 0
, PairState_Pair
, Disconnect
};
enum CommandType : uint16
{
CmdType_Tifd_Info = 0x01,
CmdType_Tird_Info = 0x02,
CmdType_LoRa_CH = 0x03,
CmdType_Paring = 0x04,
CmdType_Alarm = 0x05,
CmdType_Reg_Request = 0x06, // category : DeviceTIFD, DeviceTIRD
CmdType_Reg_Confirm = 0x07,
CmdType_KeepAlive = 0xff
};
enum Device : uint8 {
DeviceNone
, DeviceRegRequest
, DeviceTIFD
, DeviceTIRD
, DevicePair
};
enum class PendingTifdListViewCategory : uint8
{
Information = 0
, TableTifd_No
, TableTifd_TrainNo
, TableTifd_DeviceID
, TableTifd_Lat
, TableTifd_Lon
, TableTifd_Speed
, TableTifd_Sat
, CategorySize
};
enum class PendingTirdListViewCategory : uint8
{
Information = 0
,TableTird_No
, TableTird_DeviceID
, TableTird_Lat
, TableTird_Lon
, TableTird_Speed
, TableTird_Sat
, TableTird_Battery
, CategorySize
};
enum class PairingListViewCategory : uint8
{
Information
, Table_No
, Table_TrainNo
, Table_Type
, Table_DeviceId
, Table_Latitude
, Table_Longitude
, Table_Speed
, Table_Sat
, Table_Distance
, Table_Length
, Table_Status // Alram
, Table_Battery
, CategorySize
};
enum class LogListViewCategory : uint8
{
Time
, Contents
};
enum List
{
TIFD_LIST = 1
, TIRD_LIST
, PAIRING_LIST
};
enum enumTrainStatus
{
TrainStatus_Normal = 0,
TrainStatus_OpenAlarm,
TrainStatus_OpenAlarmRequest,
TrainStatus_OpenTunnelAlarm,
TrainStatus_TunnelAlarm
};
enum class TifdInfoCategory : uint8
{
Version = 0
, Device
, PairingStatus
, Network_Information
, IpAddress
, Port
, GPS_Information
, Time
, Latitude
, Longitude
, Altitude
, Speed
, Satellite
, Distance
, LORA_Information
, LoRaVersion
, Channel
, Power
, Bandwidth
, SpreadingFactor
, CodingRate
, LoRa_Receive_Information
, TIRD_Device
, RSSI
, SIZE
};
///////////////////////////////////////////////////////
enum class TirdInfoCategory : uint8
{
Version = 0
, Device
, PairingStatus
, Network_Information
, IpAddress
, Port
, GPS_Information
, Time
, Latitude
, Longitude
, Altitude
, Speed
, Satellite
, LORA_Information
, Channel
, Power
, Bandwidth
, SpreadingFactor
, CodingRate
, Battery_Information
, Battery_Voltage
, SIZE
};
///////////////////////////////////////////////////////