Artemis Teensy Flight Software
The software on the Teensy in the Artemis cubesat.
cosmos-errno.h
Go to the documentation of this file.
1 /********************************************************************
2 * Copyright (C) 2015 by Interstel Technologies, Inc.
3 * and Hawaii Space Flight Laboratory.
4 *
5 * This file is part of the COSMOS/core that is the central
6 * module for COSMOS. For more information on COSMOS go to
7 * <http://cosmos-project.com>
8 *
9 * The COSMOS/core software is licenced under the
10 * GNU Lesser General Public License (LGPL) version 3 licence.
11 *
12 * You should have received a copy of the
13 * GNU Lesser General Public License
14 * If not, go to <http://www.gnu.org/licenses/>
15 *
16 * COSMOS/core is free software: you can redistribute it and/or
17 * modify it under the terms of the GNU Lesser General Public License
18 * as published by the Free Software Foundation, either version 3 of
19 * the License, or (at your option) any later version.
20 *
21 * COSMOS/core is distributed in the hope that it will be useful, but
22 * WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24 * Lesser General Public License for more details.
25 *
26 * Refer to the "licences" folder for further information on the
27 * condititons and terms to use this software.
28 ********************************************************************/
29 
41 
45 // All COSMOS errors are less than -200 since the range of standard system errors
46 // is 1-200
48 
49 #ifndef _COSMOS_ERROR_H
50 #define _COSMOS_ERROR_H 1
51 
53 #include <errno.h>
54 
55 namespace Cosmos {
56  namespace Support {
57  enum ErrorNumbers : int16_t
58  {
59  COSMOS_ERROR_BASE = -200,
60 
61  COSMOS_GS232B_ERROR_OPEN = -201,
62  COSMOS_GS232B_ERROR_CLOSED = -202,
63  COSMOS_GS232B_ERROR_OUTOFRANGE = -203,
64  COSMOS_GS232B_ERROR_SEND = -204,
65 
66  COSMOS_MICROSTRAIN_ERROR_OPEN = -211,
67  COSMOS_MICROSTRAIN_ERROR_CLOSED = -212,
68  COSMOS_MICROSTRAIN_ERROR_OUTOFRANGE = -213,
69  COSMOS_MICROSTRAIN_ERROR_FAILED = -214,
70  COSMOS_MICROSTRAIN_ERROR_TOOMANY = -215,
71  COSMOS_MICROSTRAIN_ERROR_FUNCTION = -216,
72  COSMOS_MICROSTRAIN_ERROR_SEND = -217,
73 
74  COSMOS_SINCLAIR_ERROR_OPEN = -221,
75  COSMOS_SINCLAIR_ERROR_CLOSED = -222,
76  COSMOS_SINCLAIR_ERROR_OUTOFRANGE = -223,
77  COSMOS_SINCLAIR_ERROR_FAILED = -224,
78  COSMOS_SINCLAIR_ERROR_TOOMANY = -225,
79 
80  COSMOS_NSP_ERROR_CRC = -226,
81  COSMOS_NSP_ERROR_SIZE = -227,
82  COSMOS_NSP_ERROR_NACK = -228,
83 
84  COSMOS_TS2000_ERROR_OPEN = -231,
85  COSMOS_TS2000_ERROR_CLOSED = -232,
86  COSMOS_TS2000_ERROR_OUTOFRANGE = -233,
87 
88  COSMOS_VMT35_ERROR_RODNUM = -241,
89  COSMOS_VMT35_ERROR_BYTE = -242,
90  COSMOS_VMT35_ERROR_OUTOFRANGE = -243,
91  COSMOS_VMT35_ERROR_OPENED = -244,
92  COSMOS_VMT35_ERROR_CLOSED = -245,
93  COSMOS_VMT35_ERROR_NACK = -246,
94  COSMOS_VMT35_ERROR_CRC = -247,
95  COSMOS_VMT35_ERROR_DEVNAME = -248,
96 
97  COSMOS_JSON_ERROR_NAME_LENGTH = -251,
98  COSMOS_JSON_ERROR_DATA_LENGTH = -252,
99  COSMOS_JSON_ERROR_INDEX_SIZE = -253,
100  COSMOS_JSON_ERROR_NOJMAP = -254,
101  COSMOS_JSON_ERROR_NOENTRY = -255,
102  COSMOS_JSON_ERROR_EOS = -256,
103  COSMOS_JSON_ERROR_SCAN = -257,
104  COSMOS_JSON_ERROR_JSTRING = -258,
105  COSMOS_JSON_ERROR_NAN = -259,
106 
107  COSMOS_SLIP_ERROR_CRC = -261,
108  COSMOS_SLIP_ERROR_PACKING = -262,
109  COSMOS_SLIP_ERROR_BUFFER = -263,
110 
111  COSMOS_AGENT_ERROR_SERVER_RUNNING = -270,
112  COSMOS_AGENT_ERROR_JSON_CREATE = -271,
113  COSMOS_AGENT_ERROR_REQ_COUNT = -272,
114  COSMOS_AGENT_ERROR_MEMORY = -273,
115  COSMOS_AGENT_ERROR_SOCKET = -274,
116  COSMOS_AGENT_ERROR_CHANNEL = -275,
117  COSMOS_AGENT_ERROR_BUFLEN = -276,
118  COSMOS_AGENT_ERROR_NULL = -277,
119  COSMOS_AGENT_ERROR_DISCOVERY = -278,
120  COSMOS_AGENT_ERROR_REQUEST = -279,
121 
122  COSMOS_MATH_ERROR_GJ_UNDEFINED = -281,
123  COSMOS_MATH_ERROR_GJ_OUTOFRANGE = -282,
124 
125  COSMOS_AGENT_ERROR_LCM_CREATE = -291,
126  COSMOS_AGENT_ERROR_LCM_SUBSCRIBE = -292,
127  COSMOS_AGENT_ERROR_LCM_TIMEOUT = -293,
128 
129  COSMOS_RW_ERROR_OPEN = -301,
130  COSMOS_RW_ERROR_CLOSED = -302,
131  COSMOS_RW_ERROR_OUTOFRANGE = -303,
132  COSMOS_RW_ERROR_FAILED = -304,
133  COSMOS_RW_ERROR_TOOMANY = -305,
134  COSMOS_RW_ERROR_SEND = -306,
135 
136  COSMOS_STK_ERROR_LOWINDEX = -311,
137  COSMOS_STK_ERROR_HIGHINDEX = -312,
138  COSMOS_STK_ERROR_OUTOFRANGE = -313,
139  COSMOS_STK_ERROR_NOTFOUND = -314,
140 
141  COSMOS_DEM_ERROR_SEMINIT = -321,
142  COSMOS_DEM_ERROR_OPEN = -322,
143  COSMOS_DEM_ERROR_INSUFFICIENT_MEMORY = -323,
144  COSMOS_DEM_ERROR_NOTFOUND = -324,
145 
146  COSMOS_TLE_ERROR_OUTOFRANGE = -331,
147  COSMOS_ORBIT_ERROR_NOTSUPPORTED = -332,
148  COSMOS_TLE_ERROR_NOTFOUND = -334,
149 
150  COSMOS_NODE_ERROR_NODE = -341, // node.ini does not exist
151  COSMOS_NODE_ERROR_GROUNDSTATION = -342,
152  COSMOS_NODE_ERROR_ROOTDIR = -343,
153 
154  COSMOS_MOST_USER_CANCELLED = -351,
155 
156  COSMOS_DATA_ERROR_ARCHIVE = -361,
157  COSMOS_DATA_ERROR_SIZE_MISMATCH = -362,
158  COSMOS_DATA_ERROR_CRC = -363,
159  COSMOS_DATA_ERROR_FORMAT = -364,
160  COSMOS_DATA_ERROR_RESOURCES_FOLDER = -365, // if agent can't find the cosmos/resources folder
161  COSMOS_DATA_ERROR_NODES_FOLDER = -366,
162  COSMOS_DATA_ERROR_ROOT_FOLDER = -367,
163 
164  COSMOS_GIGE_ERROR_NACK = -371,
165 
166  COSMOS_CSSL_ERROR_BASE = -380,
167  COSMOS_CSSL_ERROR_CHECKSUM = -381,
168  COSMOS_CSSL_ERROR_READ = -382,
169  COSMOS_CSSL_ERROR_TIMEOUT = -383,
170  COSMOS_CSSL_ERROR_EOT = -384,
171  COSMOS_CSSL_ERROR_SLIPIN = -385,
172  COSMOS_CSSL_ERROR_SLIPOUT = -386,
173  COSMOS_CSSL_ERROR_BUFFER_SIZE_EXCEEDED = -387,
174  COSMOS_CSSL_ERROR_BAD_ESCAPE = -388,
175 
176  COSMOS_SERIAL_ERROR_CHECKSUM = -381,
177  COSMOS_SERIAL_ERROR_READ = -382,
178  COSMOS_SERIAL_ERROR_TIMEOUT = -383,
179  COSMOS_SERIAL_ERROR_EOT = -384,
180  COSMOS_SERIAL_ERROR_SLIPIN = -385,
181  COSMOS_SERIAL_ERROR_SLIPOUT = -386,
182  COSMOS_SERIAL_ERROR_BUFFER_SIZE_EXCEEDED = -387,
183  COSMOS_SERIAL_ERROR_BAD_ESCAPE = -388,
184  COSMOS_SERIAL_ERROR_OPEN = -389,
185 
186 
187  COSMOS_IC9100_ERROR_OPEN = -391,
188  COSMOS_IC9100_ERROR_CLOSED = -392,
189  COSMOS_IC9100_ERROR_OUTOFRANGE = -393,
190  COSMOS_IC9100_ERROR_WRITE = -394,
191  COSMOS_IC9100_ERROR_NG = -395,
192  COSMOS_IC9100_ERROR_READ = -396,
193  COSMOS_IC9100_ERROR_ADDR = -397,
194 
195  COSMOS_GPS_ERROR_OPEN = -401,
196  COSMOS_GPS_ERROR_CLOSED = -402,
197 
198  COSMOS_OEMV_ERROR_OPEN = -411,
199  COSMOS_OEMV_ERROR_CLOSED = -412,
200  COSMOS_OEMV_ERROR_CRC = -413,
201  COSMOS_OEMV_ERROR_RESPONSE = -414,
202 
203  COSMOS_PIC_ERROR_OPEN = -421,
204  COSMOS_PIC_ERROR_CLOSED = -422,
205  COSMOS_PIC_ERROR_PORT = -423,
206  COSMOS_PIC_ERROR_NACK = -424,
207  COSMOS_PIC_ERROR_SIZE = -425,
208  COSMOS_PIC_ERROR_ERR = -426,
209  COSMOS_PIC_ERROR_TYPE = -427,
210 
211  COSMOS_ASTRODEV_ERROR_HEADER_CS = -431,
212  COSMOS_ASTRODEV_ERROR_SYNC0 = -432,
213  COSMOS_ASTRODEV_ERROR_NACK = -433,
214  COSMOS_ASTRODEV_ERROR_PAYLOAD_CS = -434,
215  COSMOS_ASTRODEV_ERROR_SYNC1 = -435,
216  COSMOS_ASTRODEV_ERROR_HEADER = -436,
217  COSMOS_ASTRODEV_ERROR_PAYLOAD = -437,
218 
219  COSMOS_SUCHI_ERROR_CLOSED = -441,
220 
221  COSMOS_VN100_ERROR_OPEN = -451,
222  COSMOS_VN100_ERROR_NACK = -452,
223  COSMOS_VN100_ERROR_SCAN = -453,
224 
225  COSMOS_ISC_ERROR_CLOSED = -461,
226 
227  COSMOS_TRANSFER_ERROR_MATCH = -471,
228  COSMOS_TRANSFER_ERROR_QUEUEFULL = -472,
229  COSMOS_TRANSFER_ERROR_INDEX = -473,
230  COSMOS_TRANSFER_ERROR_NODE = -474,
231  COSMOS_TRANSFER_ERROR_FILENAME = -475,
232  COSMOS_TRANSFER_ERROR_DUPLICATE = -476,
233  COSMOS_TRANSFER_ERROR_FILESIZE = -477,
234  COSMOS_TRANSFER_ERROR_FILEZERO = -478,
235  COSMOS_TRANSFER_ERROR_VERSION = -479,
236 
237  COSMOS_SOCKET_ERROR_CS = -481,
238  COSMOS_SOCKET_ERROR_PROTOCOL = -482,
239  COSMOS_SOCKET_READ_TIMEOUT = -483,
240  COSMOS_SOCKET_ERROR_OPEN = -484,
241  COSMOS_SOCKET_ERROR_OPEN_RECEIVE = -485,
242  COSMOS_SOCKET_ERROR_OPEN_TRANSMIT = -486,
243  COSMOS_SOCKET_ERROR_OPEN_CONNECT = -487,
244  COSMOS_SOCKET_ERROR_CLOSE = -488,
245 
246  COSMOS_TRIMBLE_ERROR_CS = -491,
247 
248  COSMOS_JPLEPHEM_ERROR_NOTFOUND = -501,
249  COSMOS_JPLEPHEM_ERROR_INSUFFICIENT_MEMORY = -502,
250  COSMOS_JPLEPHEM_ERROR_OUTOFRANGE = -503,
251  COSMOS_JPLEPHEM_ERROR_NUTATIONS = -504,
252  COSMOS_JPLEPHEM_ERROR_LIBRATIONS = -505,
253 
254  COSMOS_GEOMAG_ERROR_NOTFOUND = -511, // WMM File not found
255  COSMOS_GEOMAG_ERROR_OUTOFRANGE = -512,
256 
257  COSMOS_PRKX2SU_ERROR_OPEN = -521,
258  COSMOS_PRKX2SU_ERROR_CLOSED = -522,
259  COSMOS_PRKX2SU_ERROR_OUTOFRANGE = -523,
260  COSMOS_PRKX2SU_ERROR_SEND = -524,
261 
262  COSMOS_CONVERT_ERROR_UTC = -531,
263 
264 
265  COSMOS_CUBEADCS_SERIALCOMM_RESPONSE = -601,
266  COSMOS_CUBEADCS_INVALID_RESPONSE = -602,
267  COSMOS_CUBEADCS_NOT_CONNECTED = -603,
268  COSMOS_CUBEADCS_SERIAL_PROTOCOL = -604,
269 
270  COSMOS_CLYDE_EPS_NOT_CONNECTED = -611,
271  COSMOS_CLYDE_BATTERY_NOT_CONNECTED = -612,
272  COSMOS_CLYDE_GENERAL_BAD_ADDRESS = -613,
273 
274  COSMOS_MEADE_MOUNT_ERROR_NOT_CONNECTED = -620,
275  COSMOS_MEADE_MOUNT_ERROR_BAD_RESPONSE = -621,
276  COSMOS_MEADE_MOUNT_ERROR_VALUE_INVALID = -622,
277  COSMOS_MEADE_MOUNT_ERROR_OUTSIDE_LIMITS = -623,
278 
279  COSMOS_SCPI_ERROR_NOT_CONNECTED = -630,
280  COSMOS_SCPI_ERROR_BAD_RESPONSE = -631,
281  COSMOS_SCPI_ERROR_VALUE_INVALID = -632,
282  COSMOS_SCPI_ERROR_OUTSIDE_LIMITS = -633,
283  COSMOS_SCPI_ERROR_OUTSIDE_RANGE = -634,
284 
285  COSMOS_ISIS_CMD_REJECTED = -640,
286  COSMOS_ISIS_INVALID_COMMAND_CODE = -641,
287  COSMOS_ISIS_PARAM_MISSING = -642,
288  COSMOS_ISIS_PARAM_INVALID = -643,
289  COSMOS_ISIS_UNAVAILABLE_IN_CURRENT_MODE = -644,
290  COSMOS_ISIS_INVALID_SYSTYPE_OR_IVID_OR_BID = -645,
291  COSMOS_ISIS_INTERNAL_ERROR = -646,
292 
293  COSMOS_PACKET_TYPE_MISMATCH = -651, // If the type id of a packet is not handled
294 
295  COSMOS_GENERAL_OK = -0, /* everything is all right */
296  COSMOS_GENERAL_ERROR_NO_SIGNAL = -2001, /* there's no free signal */
297  COSMOS_GENERAL_ERROR_NOTSTARTED = -2002, /* uninitialized error */
298  COSMOS_GENERAL_ERROR_NULLPOINTER = -2003, /* you gave a null pointer to the function */
299  COSMOS_GENERAL_ERROR_OOPS = -2004, /* internal error, something's erong */
300  COSMOS_GENERAL_ERROR_MEMORY = -2005, /* there's no memory for more of something */
301  COSMOS_GENERAL_ERROR_OPEN = -2006, /* file doesnt exist or you aren't good user */
302  COSMOS_GENERAL_ERROR_CRC = -2007, /* crc error */
303  COSMOS_GENERAL_ERROR_OVERSIZE = -2008, /* input was too large */
304  COSMOS_GENERAL_ERROR_ZEROSIZE = -2009, /* input cannot be zero size */
305  COSMOS_GENERAL_ERROR_UNIMPLEMENTED = -2010, /* command is not implemented */
306  COSMOS_GENERAL_ERROR_EMPTY = -2011, /* usually indicates that a buffer was empty */
307  COSMOS_GENERAL_ERROR_UNHANDLED_ERR = -2012, /* error that is not currently handled */
308  COSMOS_GENERAL_ERROR_UNDERSIZE = -2013, /* packet is smaller than expected size */
309  COSMOS_GENERAL_ERROR_BAD_SIZE = -2014, /* packet is an invalid size */
310  COSMOS_GENERAL_ERROR_TIMEOUT = -2015, /* a timer expired */
311  COSMOS_GENERAL_ERROR_INPUT = -2016, /* invalid input was provided */
312  COSMOS_GENERAL_ERROR_OUTPUT = -2017, /* output from a routine returned bad output, possibly related to bad input */
313  COSMOS_GENERAL_ERROR_UNDEFINED = -2018,
314  COSMOS_GENERAL_ERROR_OUTOFRANGE = -2019,
315  COSMOS_GENERAL_ERROR_NOTREADY = -2020,
316  COSMOS_GENERAL_ERROR_BUSY = -2021,
317  COSMOS_GENERAL_ERROR_NO_CARRIER = -2022,
318  COSMOS_GENERAL_ERROR_NO_DIALTONE = -2023,
319  COSMOS_GENERAL_ERROR_NO_ANSWER = -2024,
320  COSMOS_GENERAL_ERROR_DUPLICATE = -2025,
321  COSMOS_GENERAL_ERROR_MISMATCH = -2026,
322  COSMOS_GENERAL_ERROR_ERROR = -2027,
323  COSMOS_GENERAL_ERROR_ARGS = -2028,
324  COSMOS_GENERAL_ERROR_TOO_LOW = -2029,
325  COSMOS_GENERAL_ERROR_POSITION = -2030,
326  COSMOS_GENERAL_ERROR_ATTITUDE = -2031,
327  COSMOS_GENERAL_ERROR_NAME = -2032, // No or unusable name
328  COSMOS_GENERAL_ERROR_BAD_FD = -2033, // No or unusable file descriptor
329  COSMOS_GENERAL_ERROR_BAD_ACK = -2034, // Bad acknowledgement
330 
331  COSMOS_GPHOTO2_ERROR = -3000,
332 
333  COSMOS_ERROR_END = -3001
334  };
335 
336 #define GS232B_ERROR_OPEN -201
337 #define GS232B_ERROR_CLOSED -202
338 #define GS232B_ERROR_OUTOFRANGE -203
339 #define GS232B_ERROR_SEND -204
340 
342 #define MICROSTRAIN_ERROR_OPEN -211
343 #define MICROSTRAIN_ERROR_CLOSED -212
344 #define MICROSTRAIN_ERROR_OUTOFRANGE -213
345 #define MICROSTRAIN_ERROR_FAILED -214
346 #define MICROSTRAIN_ERROR_TOOMANY -215
347 #define MICROSTRAIN_ERROR_FUNCTION -216
348 #define MICROSTRAIN_ERROR_SEND -217
349 
350 #define SINCLAIR_ERROR_OPEN -221
351 #define SINCLAIR_ERROR_CLOSED -222
352 #define SINCLAIR_ERROR_OUTOFRANGE -223
353 #define SINCLAIR_ERROR_FAILED -224
354 #define SINCLAIR_ERROR_TOOMANY -225
355 
356 #define NSP_ERROR_CRC -226
357 #define NSP_ERROR_SIZE -227
358 #define NSP_ERROR_NACK -228
359 
360 #define TS2000_ERROR_OPEN -231
361 #define TS2000_ERROR_CLOSED -232
362 #define TS2000_ERROR_OUTOFRANGE -233
363 
364 #define VMT35_ERROR_RODNUM -241
365 #define VMT35_ERROR_BYTE -242
366 #define VMT35_ERROR_OUTOFRANGE -243
367 #define VMT35_ERROR_OPENED -244
368 #define VMT35_ERROR_CLOSED -245
369 #define VMT35_ERROR_NACK -246
370 #define VMT35_ERROR_CRC -247
371 #define VMT35_ERROR_DEVNAME -248
372 
373 #define JSON_ERROR_NAME_LENGTH -251
374 #define JSON_ERROR_DATA_LENGTH -252
375 #define JSON_ERROR_INDEX_SIZE -253
376 #define JSON_ERROR_NOJMAP -254
377 #define JSON_ERROR_NOENTRY -255
378 #define JSON_ERROR_EOS -256
379 #define JSON_ERROR_SCAN -257
380 #define JSON_ERROR_JSTRING -258
381 #define JSON_ERROR_NAN -259
382 
383 #define SLIP_ERROR_CRC -261
384 #define SLIP_ERROR_PACKING -262
385 #define SLIP_ERROR_BUFFER -263
386 
387 #define AGENT_ERROR_SERVER_RUNNING -270
388 #define AGENT_ERROR_JSON_CREATE -271
389 #define AGENT_ERROR_REQ_COUNT -272
390 #define AGENT_ERROR_MEMORY -273
391 #define AGENT_ERROR_SOCKET -274
392 #define AGENT_ERROR_CHANNEL -275
393 #define AGENT_ERROR_BUFLEN -276
394 #define AGENT_ERROR_NULL -277
395 #define AGENT_ERROR_DISCOVERY -278
396 #define AGENT_ERROR_REQUEST -279
397 
398 #define MATH_ERROR_GJ_UNDEFINED -281
399 #define MATH_ERROR_GJ_OUTOFRANGE -282
400 
401 #define AGENT_ERROR_LCM_CREATE -291
402 #define AGENT_ERROR_LCM_SUBSCRIBE -292
403 #define AGENT_ERROR_LCM_TIMEOUT -293
404 
405 #define RW_ERROR_OPEN -301
406 #define RW_ERROR_CLOSED -302
407 #define RW_ERROR_OUTOFRANGE -303
408 #define RW_ERROR_FAILED -304
409 #define RW_ERROR_TOOMANY -305
410 #define RW_ERROR_SEND -306
411 
412 #define STK_ERROR_LOWINDEX -311
413 #define STK_ERROR_HIGHINDEX -312
414 #define STK_ERROR_OUTOFRANGE -313
415 #define STK_ERROR_NOTFOUND -314
416 
417 #define DEM_ERROR_SEMINIT -321
418 #define DEM_ERROR_OPEN -322
419 #define DEM_ERROR_INSUFFICIENT_MEMORY -323
420 #define DEM_ERROR_NOTFOUND -324
421 
422 #define TLE_ERROR_OUTOFRANGE -331
423 #define ORBIT_ERROR_NOTSUPPORTED -332
424 #define TLE_ERROR_NOTFOUND -334
425 
426 #define NODE_ERROR_NODE -341 // node.ini does not exist
427 #define NODE_ERROR_GROUNDSTATION -342
428 #define NODE_ERROR_ROOTDIR -343
429 
430 #define MOST_USER_CANCELLED -351
431 
432 #define DATA_ERROR_ARCHIVE -361
433 #define DATA_ERROR_SIZE_MISMATCH -362
434 #define DATA_ERROR_CRC -363
435 #define DATA_ERROR_FORMAT -364
436 #define DATA_ERROR_RESOURCES_FOLDER -365 // if agent can't find the cosmos/resources folder
437 #define DATA_ERROR_NODES_FOLDER -366
438 #define DATA_ERROR_ROOT_FOLDER -367
439 
440 #define GIGE_ERROR_NACK -371
441 
442 #define CSSL_ERROR_BASE -380
443 #define CSSL_ERROR_CHECKSUM -381
444 #define CSSL_ERROR_READ -382
445 #define CSSL_ERROR_TIMEOUT -383
446 #define CSSL_ERROR_EOT -384
447 #define CSSL_ERROR_SLIPIN -385
448 #define CSSL_ERROR_SLIPOUT -386
449 #define CSSL_ERROR_BUFFER_SIZE_EXCEEDED -387
450 #define CSSL_ERROR_BAD_ESCAPE -388
451 
452 #define SERIAL_ERROR_CHECKSUM -381
453 #define SERIAL_ERROR_READ -382
454 #define SERIAL_ERROR_TIMEOUT -383
455 #define SERIAL_ERROR_EOT -384
456 #define SERIAL_ERROR_SLIPIN -385
457 #define SERIAL_ERROR_SLIPOUT -386
458 #define SERIAL_ERROR_BUFFER_SIZE_EXCEEDED -387
459 #define SERIAL_ERROR_BAD_ESCAPE -388
460 #define SERIAL_ERROR_OPEN -389
461 
462 
463 #define IC9100_ERROR_OPEN -391
464 #define IC9100_ERROR_CLOSED -392
465 #define IC9100_ERROR_OUTOFRANGE -393
466 #define IC9100_ERROR_WRITE -394
467 #define IC9100_ERROR_NG -395
468 #define IC9100_ERROR_READ -396
469 #define IC9100_ERROR_ADDR -397
470 
471 #define GPS_ERROR_OPEN -401
472 #define GPS_ERROR_CLOSED -402
473 
474 #define OEMV_ERROR_OPEN -411
475 #define OEMV_ERROR_CLOSED -412
476 #define OEMV_ERROR_CRC -413
477 #define OEMV_ERROR_RESPONSE -414
478 
479 #define PIC_ERROR_OPEN -421
480 #define PIC_ERROR_CLOSED -422
481 #define PIC_ERROR_PORT -423
482 #define PIC_ERROR_NACK -424
483 #define PIC_ERROR_SIZE -425
484 #define PIC_ERROR_ERR -426
485 #define PIC_ERROR_TYPE -427
486 
487 #define ASTRODEV_ERROR_HEADER_CS -431
488 #define ASTRODEV_ERROR_SYNC0 -432
489 #define ASTRODEV_ERROR_NACK -433
490 #define ASTRODEV_ERROR_PAYLOAD_CS -434
491 #define ASTRODEV_ERROR_SYNC1 -435
492 #define ASTRODEV_ERROR_HEADER -436
493 #define ASTRODEV_ERROR_PAYLOAD -437
494 
495 #define SUCHI_ERROR_CLOSED -441
496 
497 #define VN100_ERROR_OPEN -451
498 #define VN100_ERROR_NACK -452
499 #define VN100_ERROR_SCAN -453
500 
501 #define ISC_ERROR_CLOSED -461
502 
503 #define TRANSFER_ERROR_MATCH -471
504 #define TRANSFER_ERROR_QUEUEFULL -472
505 #define TRANSFER_ERROR_INDEX -473
506 #define TRANSFER_ERROR_NODE -474
507 #define TRANSFER_ERROR_FILENAME -475
508 #define TRANSFER_ERROR_DUPLICATE -476
509 #define TRANSFER_ERROR_FILESIZE -477
510 #define TRANSFER_ERROR_FILEZERO -478
511 #define TRANSFER_ERROR_VERSION -479
512 
513 #define SOCKET_ERROR_CS -481
514 #define SOCKET_ERROR_PROTOCOL -482
515 #define SOCKET_READ_TIMEOUT -483
516 #define SOCKET_ERROR_OPEN -484
517 #define SOCKET_ERROR_OPEN_RECEIVE -485
518 #define SOCKET_ERROR_OPEN_TRANSMIT -486
519 #define SOCKET_ERROR_OPEN_CONNECT -487
520 #define SOCKET_ERROR_CLOSE -488
521 
522 #define TRIMBLE_ERROR_CS -491
523 
524 #define JPLEPHEM_ERROR_NOTFOUND -501
525 #define JPLEPHEM_ERROR_INSUFFICIENT_MEMORY -502
526 #define JPLEPHEM_ERROR_OUTOFRANGE -503
527 #define JPLEPHEM_ERROR_NUTATIONS -504
528 #define JPLEPHEM_ERROR_LIBRATIONS -505
529 
530 #define GEOMAG_ERROR_NOTFOUND -511 // WMM File not found
531 #define GEOMAG_ERROR_OUTOFRANGE -512
532 
533 #define PRKX2SU_ERROR_OPEN -521
534 #define PRKX2SU_ERROR_CLOSED -522
535 #define PRKX2SU_ERROR_OUTOFRANGE -523
536 #define PRKX2SU_ERROR_SEND -524
537 
538 #define CONVERT_ERROR_UTC -531
539 
540 
541 #define CUBEADCS_SERIALCOMM_RESPONSE -601
542 #define CUBEADCS_INVALID_RESPONSE -602
543 #define CUBEADCS_NOT_CONNECTED -603
544 #define CUBEADCS_SERIAL_PROTOCOL -604
545 
546 #define CLYDE_EPS_NOT_CONNECTED -611
547 #define CLYDE_BATTERY_NOT_CONNECTED -612
548 #define CLYDE_GENERAL_BAD_ADDRESS -613
549 
550 #define MEADE_MOUNT_ERROR_NOT_CONNECTED -620
551 #define MEADE_MOUNT_ERROR_BAD_RESPONSE -621
552 #define MEADE_MOUNT_ERROR_VALUE_INVALID -622
553 #define MEADE_MOUNT_ERROR_OUTSIDE_LIMITS -623
554 
555 #define SCPI_ERROR_NOT_CONNECTED -630
556 #define SCPI_ERROR_BAD_RESPONSE -631
557 #define SCPI_ERROR_VALUE_INVALID -632
558 #define SCPI_ERROR_OUTSIDE_LIMITS -633
559 #define SCPI_ERROR_OUTSIDE_RANGE -634
560 
561 #define GENERAL_OK 0 /* everything is all right */
562 #define GENERAL_ERROR_NO_SIGNAL -2001 /* there's no free signal */
563 #define GENERAL_ERROR_NOTSTARTED -2002 /* uninitialized error */
564 #define GENERAL_ERROR_NULLPOINTER -2003 /* you gave a null pointer to the function */
565 #define GENERAL_ERROR_OOPS -2004 /* internal error, something's erong */
566 #define GENERAL_ERROR_MEMORY -2005 /* there's no memory for more of something */
567 #define GENERAL_ERROR_OPEN -2006 /* file doesnt exist or you aren't good user */
568 #define GENERAL_ERROR_CRC -2007 /* crc error */
569 #define GENERAL_ERROR_OVERSIZE -2008 /* input was too large */
570 #define GENERAL_ERROR_ZEROSIZE -2009 /* input cannot be zero size */
571 #define GENERAL_ERROR_UNIMPLEMENTED -2010 /* command is not implemented */
572 #define GENERAL_ERROR_EMPTY -2011 /* usually indicates that a buffer was empty */
573 #define GENERAL_ERROR_UNHANDLED_ERR -2012 /* error that is not currently handled */
574 #define GENERAL_ERROR_UNDERSIZE -2013 /* packet is smaller than expected size */
575 #define GENERAL_ERROR_BAD_SIZE -2014 /* packet is an invalid size */
576 #define GENERAL_ERROR_TIMEOUT -2015 /* a timer expired */
577 #define GENERAL_ERROR_INPUT -2016 /* invalid input was provided */
578 #define GENERAL_ERROR_OUTPUT -2017 /* output from a routine returned bad output, possibly related to bad input */
579 #define GENERAL_ERROR_UNDEFINED -2018
580 #define GENERAL_ERROR_OUTOFRANGE -2019
581 #define GENERAL_ERROR_NOTREADY -2020
582 #define GENERAL_ERROR_BUSY -2021
583 #define GENERAL_ERROR_NO_CARRIER -2022
584 #define GENERAL_ERROR_NO_DIALTONE -2023
585 #define GENERAL_ERROR_NO_ANSWER -2024
586 #define GENERAL_ERROR_DUPLICATE -2025
587 #define GENERAL_ERROR_MISMATCH -2026
588 #define GENERAL_ERROR_ERROR -2027
589 #define GENERAL_ERROR_ARGS -2028
590 #define GENERAL_ERROR_TOO_LOW -2029
591 #define GENERAL_ERROR_POSITION -2030
592 #define GENERAL_ERROR_ATTITUDE -2031
593 #define GENERAL_ERROR_NAME -2032 // No or unusable name
594 #define GENERAL_ERROR_BAD_FD -2033 // No or unusable file descriptor
595 #define GENERAL_ERROR_BAD_ACK -2034 // Bad acknowledgement
596 #define GENERAL_ERROR_EOF -2035
597 #define GENERAL_ERROR_BAD_DIR -2036
598 
599 #define GPHOTO2_ERROR -3000
600 
601  }
602 }
603 
604 #endif
Headers and definitions common to all COSMOS Kernel.