ValoFly TetherCom Library  41
Communication library for ValoFly Tether.Solutions ground stations
TetherComDefinitions.h
Go to the documentation of this file.
1 //
2 // Copyright (C) ValoFly GmbH - All Rights Reserved
3 //
10 #ifndef _VALOFLY_TETHERCOM_DEFINITIONS_CXX_HEADER_
11 #define _VALOFLY_TETHERCOM_DEFINITIONS_CXX_HEADER_
12 
13 #include <stdlib.h>
14 #include <stdint.h>
15 
17 /**********************************************************************/
18 /* Public TetherCom system definitions */
19 /**********************************************************************/
20 
22 namespace VALOFLY {
24  namespace TetherComDefinitions {
25 
29  enum class connectionStatus : uint8_t
30  {
31  disconnected = 0x00,
32  connected = 0x01,
33  error = 0xFF,
34  };
35 
39  enum class statusConfig : uint8_t
40  {
41  disable = 0x00,
42  enable = 0x01,
43  not_available = 0xFF,
44  };
45 
49  enum class communicationStatus : uint8_t
50  {
51  ack = 0x00,
52  buffer_overflow = 0x01,
53  timeout = 0x02,
54  data_format_error = 0x03,
55  command_error = 0x04,
56  data_error = 0x05,
57  command_exec_error = 0x06,
58  not_defined = 0xFF,
59  };
60 
64  enum class systemError : uint8_t
65  {
66  no_error = 0x00,
67  generic_error = 0x01,
68  generic_warning = 0x80,
69  };
70 
74  enum class hardwareModuleStatus : uint8_t
75  {
76  disable = 0x00,
77  enable = 0x01,
78  hardware_error = 0x80,
79  communication_error = 0x81,
80  not_available = 0xFF,
81  };
82 
86  enum class systemActivationStatus : uint8_t
87  {
88  off = 0x00,
89  manual = 0x01,
90  remote_uart = 0x10,
91  };
92 
96  enum class systemNetworkType : uint8_t
97  {
98  p2w = 0x01,
99  p3w = 0x02,
100  fo = 0x03,
101  not_available = 0xFF,
102  };
103 
107  enum class networkStatus : uint8_t
108  {
109  offline = 0x00,
110  error = 0x01,
111  pairing = 0x02,
112  connected = 0x03,
113  not_available = 0xFF,
114  };
115 
119  enum class memoryStatus : uint8_t
120  {
121  ok = 0x00,
122  error = 0x01,
123  overflow = 0x02,
124  not_available = 0xFF,
125  };
126 
130  enum class cableTetherStatus : uint8_t
131  {
132  ok = 0x00,
133  warning_length = 0x01,
134  max_length = 0x02,
135  failure = 0x03,
136  };
137 
141  enum class cableGuideStatus : uint8_t
142  {
143  ok = 0x00,
144  motor_failure = 0x01,
145  not_available = 0xFF,
146  };
147 
151  enum class cableReelStatus : uint8_t
152  {
153  ok = 0x00,
154  motor_failure = 0x01,
155  not_available = 0xFF,
156  };
157 
161  enum class cableRetractionStatus : uint8_t
162  {
163  off = 0x00,
164  manual = 0x01,
165  automatic = 0x02,
166  remote_uart = 0x10,
167  breaking = 0x20,
168  lock = 0x21,
169  not_available = 0xFF,
170  };
171 
175  enum class envSensorStatus : uint8_t
176  {
177  ok = 0x00,
178  sensor_failure = 0x01,
179  temp_failure = 0x02,
180  humidity_failure = 0x03,
181  pressure_failure = 0x04,
182  not_available = 0xFF,
183  };
184 
188  enum class fanStatus : uint8_t
189  {
190  ok = 0x00,
191  failure = 0x01,
192  not_available = 0xFF,
193  };
194 
198  enum class supplyStatus : uint8_t
199  {
200  ok = 0x00,
201  general_error = 0x01,
202  range_error = 0x02,
203  not_available = 0xFF,
204  };
205 
209  enum class extUAVSupplyStatus : uint8_t
210  {
211  inactive = 0x00,
212  pri_starting = 0x01,
213  pri_running = 0x02,
214  stopping = 0x04,
215  supply_error = 0x08,
216  load_error = 0x10,
217  sec_starting = 0x21,
218  sec_running = 0x22,
219  };
220 
224  enum class backupBatteryStatus : uint8_t
225  {
226  idle = 0x00,
227  charge = 0x01,
228  discharge = 0x02,
229  failure = 0x7F,
230  not_available = 0xFF,
231  };
232  };
233 };
234 
235 #endif // _VALOFLY_TETHERCOM_DEFINITIONS_CXX_HEADER_
fanStatus
Definition: TetherComDefinitions.h:189
envSensorStatus
Definition: TetherComDefinitions.h:176
systemError
Definition: TetherComDefinitions.h:65
cableTetherStatus
Definition: TetherComDefinitions.h:131
backupBatteryStatus
Definition: TetherComDefinitions.h:225
connectionStatus
Definition: TetherComDefinitions.h:30
extUAVSupplyStatus
Definition: TetherComDefinitions.h:210
cableReelStatus
Definition: TetherComDefinitions.h:152
cableGuideStatus
Definition: TetherComDefinitions.h:142
statusConfig
Definition: TetherComDefinitions.h:40
communicationStatus
Definition: TetherComDefinitions.h:50
cableRetractionStatus
Definition: TetherComDefinitions.h:162
systemActivationStatus
Definition: TetherComDefinitions.h:87
memoryStatus
Definition: TetherComDefinitions.h:120
networkStatus
Definition: TetherComDefinitions.h:108
supplyStatus
Definition: TetherComDefinitions.h:199
systemNetworkType
Definition: TetherComDefinitions.h:97
hardwareModuleStatus
Definition: TetherComDefinitions.h:75
Namespace for classes and members developed by ValoFly GmbH.
Definition: TetherCom.h:23