ValoFly TetherCom Library  9
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  };
69 
73  enum class systemActivationStatus : uint8_t
74  {
75  off = 0x00,
76  manual = 0x01,
77  remote_uart = 0x10,
78  };
79 
83  enum class systemNetworkType : uint8_t
84  {
85  p2w = 0x01,
86  p3w = 0x02,
87  fo = 0x03,
88  not_available = 0xFF,
89  };
90 
94  enum class networkStatus : uint8_t
95  {
96  offline = 0x00,
97  error = 0x01,
98  pairing = 0x02,
99  connected = 0x03,
100  not_available = 0xFF,
101  };
102 
106  enum class memoryStatus : uint8_t
107  {
108  ok = 0x00,
109  error = 0x01,
110  overflow = 0x02,
111  not_available = 0xFF,
112  };
113 
117  enum class cableTetherStatus : uint8_t
118  {
119  ok = 0x00,
120  warning_length = 0x01,
121  max_length = 0x02,
122  failure = 0x03,
123  };
124 
128  enum class cableGuideStatus : uint8_t
129  {
130  ok = 0x00,
131  motor_failure = 0x01,
132  not_available = 0xFF,
133  };
134 
138  enum class cableReelStatus : uint8_t
139  {
140  ok = 0x00,
141  motor_failure = 0x01,
142  not_available = 0xFF,
143  };
144 
148  enum class cableRetractionStatus : uint8_t
149  {
150  off = 0x00,
151  manual = 0x01,
152  automatic = 0x02,
153  remote_uart = 0x10,
154  not_available = 0xFF,
155  };
156 
160  enum class envSensorStatus : uint8_t
161  {
162  ok = 0x00,
163  sensor_failure = 0x01,
164  temp_failure = 0x02,
165  humidity_failure = 0x03,
166  pressure_failure = 0x04,
167  };
168 
172  enum class fanStatus : uint8_t
173  {
174  ok = 0x00,
175  failure = 0x01,
176  not_available = 0xFF,
177  };
178 
182  enum class supplyStatus : uint8_t
183  {
184  ok = 0x00,
185  general_error = 0x01,
186  range_error = 0x02,
187  not_available = 0xFF,
188  };
189 
193  enum class extUAVSupplyStatus : uint8_t
194  {
195  inactive = 0x00,
196  pri_starting = 0x01,
197  pri_running = 0x02,
198  stopping = 0x04,
199  supply_error = 0x08,
200  load_error = 0x10,
201  sec_starting = 0x21,
202  sec_running = 0x22,
203  };
204 
208  enum class backupBatteryStatus : uint8_t
209  {
210  idle = 0x00,
211  charge = 0x01,
212  discharge = 0x02,
213  failure = 0x7F,
214  not_available = 0xFF,
215  };
216  };
217 };
218 
219 #endif // _VALOFLY_TETHERCOM_DEFINITIONS_CXX_HEADER_
fanStatus
Definition: TetherComDefinitions.h:173
envSensorStatus
Definition: TetherComDefinitions.h:161
systemError
Definition: TetherComDefinitions.h:65
cableTetherStatus
Definition: TetherComDefinitions.h:118
backupBatteryStatus
Definition: TetherComDefinitions.h:209
connectionStatus
Definition: TetherComDefinitions.h:30
extUAVSupplyStatus
Definition: TetherComDefinitions.h:194
cableReelStatus
Definition: TetherComDefinitions.h:139
cableGuideStatus
Definition: TetherComDefinitions.h:129
statusConfig
Definition: TetherComDefinitions.h:40
communicationStatus
Definition: TetherComDefinitions.h:50
cableRetractionStatus
Definition: TetherComDefinitions.h:149
systemActivationStatus
Definition: TetherComDefinitions.h:74
memoryStatus
Definition: TetherComDefinitions.h:107
networkStatus
Definition: TetherComDefinitions.h:95
supplyStatus
Definition: TetherComDefinitions.h:183
systemNetworkType
Definition: TetherComDefinitions.h:84
Namespace for classes and members developed by ValoFly GmbH.
Definition: TetherCom.h:23