ValoFly TetherCom Library  29
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 systemActivationStatus : uint8_t
75  {
76  off = 0x00,
77  manual = 0x01,
78  remote_uart = 0x10,
79  };
80 
84  enum class systemNetworkType : uint8_t
85  {
86  p2w = 0x01,
87  p3w = 0x02,
88  fo = 0x03,
89  not_available = 0xFF,
90  };
91 
95  enum class networkStatus : uint8_t
96  {
97  offline = 0x00,
98  error = 0x01,
99  pairing = 0x02,
100  connected = 0x03,
101  not_available = 0xFF,
102  };
103 
107  enum class memoryStatus : uint8_t
108  {
109  ok = 0x00,
110  error = 0x01,
111  overflow = 0x02,
112  not_available = 0xFF,
113  };
114 
118  enum class cableTetherStatus : uint8_t
119  {
120  ok = 0x00,
121  warning_length = 0x01,
122  max_length = 0x02,
123  failure = 0x03,
124  };
125 
129  enum class cableGuideStatus : uint8_t
130  {
131  ok = 0x00,
132  motor_failure = 0x01,
133  not_available = 0xFF,
134  };
135 
139  enum class cableReelStatus : uint8_t
140  {
141  ok = 0x00,
142  motor_failure = 0x01,
143  not_available = 0xFF,
144  };
145 
149  enum class cableRetractionStatus : uint8_t
150  {
151  off = 0x00,
152  manual = 0x01,
153  automatic = 0x02,
154  remote_uart = 0x10,
155  breaking = 0x20,
156  lock = 0x21,
157  not_available = 0xFF,
158  };
159 
163  enum class envSensorStatus : uint8_t
164  {
165  ok = 0x00,
166  sensor_failure = 0x01,
167  temp_failure = 0x02,
168  humidity_failure = 0x03,
169  pressure_failure = 0x04,
170  not_available = 0xFF,
171  };
172 
176  enum class fanStatus : uint8_t
177  {
178  ok = 0x00,
179  failure = 0x01,
180  not_available = 0xFF,
181  };
182 
186  enum class supplyStatus : uint8_t
187  {
188  ok = 0x00,
189  general_error = 0x01,
190  range_error = 0x02,
191  not_available = 0xFF,
192  };
193 
197  enum class extUAVSupplyStatus : uint8_t
198  {
199  inactive = 0x00,
200  pri_starting = 0x01,
201  pri_running = 0x02,
202  stopping = 0x04,
203  supply_error = 0x08,
204  load_error = 0x10,
205  sec_starting = 0x21,
206  sec_running = 0x22,
207  };
208 
212  enum class backupBatteryStatus : uint8_t
213  {
214  idle = 0x00,
215  charge = 0x01,
216  discharge = 0x02,
217  failure = 0x7F,
218  not_available = 0xFF,
219  };
220  };
221 };
222 
223 #endif // _VALOFLY_TETHERCOM_DEFINITIONS_CXX_HEADER_
fanStatus
Definition: TetherComDefinitions.h:177
envSensorStatus
Definition: TetherComDefinitions.h:164
systemError
Definition: TetherComDefinitions.h:65
cableTetherStatus
Definition: TetherComDefinitions.h:119
backupBatteryStatus
Definition: TetherComDefinitions.h:213
connectionStatus
Definition: TetherComDefinitions.h:30
extUAVSupplyStatus
Definition: TetherComDefinitions.h:198
cableReelStatus
Definition: TetherComDefinitions.h:140
cableGuideStatus
Definition: TetherComDefinitions.h:130
statusConfig
Definition: TetherComDefinitions.h:40
communicationStatus
Definition: TetherComDefinitions.h:50
cableRetractionStatus
Definition: TetherComDefinitions.h:150
systemActivationStatus
Definition: TetherComDefinitions.h:75
memoryStatus
Definition: TetherComDefinitions.h:108
networkStatus
Definition: TetherComDefinitions.h:96
supplyStatus
Definition: TetherComDefinitions.h:187
systemNetworkType
Definition: TetherComDefinitions.h:85
Namespace for classes and members developed by ValoFly GmbH.
Definition: TetherCom.h:23