-
Notifications
You must be signed in to change notification settings - Fork 203
/
cfe_error.h
1489 lines (1288 loc) · 39.6 KB
/
cfe_error.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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
** GSC-18128-1, "Core Flight Executive Version 6.7"
**
** Copyright (c) 2006-2019 United States Government as represented by
** the Administrator of the National Aeronautics and Space Administration.
** All Rights Reserved.
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
/*
** Filename: cfe_error.h
**
** Title: cFE Status Code Definition Header File
**
** Purpose:
** Common source of cFE API return status codes.
**
** Design Notes:
**
** References:
** Flight Software Branch C Coding Standard Version 1.0a
**
**/
/*
** Ensure that header is included only once...
*/
#ifndef _cfe_error_
#define _cfe_error_
/* Include Files */
#include "osapi.h"
/*
** Status Codes are 32 bit values formatted as follows:
**
** 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
** 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
** +---+---+-----+-----------------+-------------------------------+
** |Sev| R | Srv | Mission Defined | Code |
** +---+---+-----+-----------------+-------------------------------+
**
** where
**
** Sev - is the severity code
**
** 00 - Success
** 01 - Informational
** 11 - Error
**
** R - are reserved bits
**
** Srv - is the cFE Service Identifier
**
** 000 - Not a cFE Service
** 001 - Events Services
** 010 - Executive Services
** 011 - File Services
** 100 - Generic code for all services
** 101 - Software Bus Services
** 110 - Tables Services
** 111 - Time Services
**
**
** Mission Defined - These bits are available for Mission
** specific coding standards. They can
** be used to classify error codes related
** to mission specific library function calls, etc.
**
** Code - is the status code
*/
/*
** Error Severity
*/
#define CFE_SEVERITY_BITMASK ((int32)0xc0000000) /**< @brief Error Severity Bitmask */
#define CFE_SEVERITY_SUCCESS ((int32)0x00000000) /**< @brief Severity Success */
#define CFE_SEVERITY_INFO ((int32)0x40000000) /**< @brief Severity Info */
#define CFE_SEVERITY_ERROR ((int32)0xc0000000) /**< @brief Severity Error */
/*
** cFE Service Identifiers
*/
#define CFE_SERVICE_BITMASK ((int32)0x0e000000) /**< @brief Error Service Bitmask */
#define CFE_EVENTS_SERVICE ((int32)0x02000000) /**< @brief Event Service */
#define CFE_EXECUTIVE_SERVICE ((int32)0x04000000) /**< @brief Executive Service */
#define CFE_FILE_SERVICE ((int32)0x06000000) /**< @brief File Service */
#define CFE_GENERIC_SERVICE ((int32)0x08000000) /**< @brief Generic Service */
#define CFE_SOFTWARE_BUS_SERVICE ((int32)0x0a000000) /**< @brief Software Bus Service */
#define CFE_TABLE_SERVICE ((int32)0x0c000000) /**< @brief Table Service */
#define CFE_TIME_SERVICE ((int32)0x0e000000) /**< @brief Time Service */
/*
************* COMMON STATUS CODES *************
*/
/** @defgroup CFEReturnCodes cFE Return Code Defines
* @{
*/
/**
* @brief Sucessful execution
*
* Operation was performed successfully
*/
#define CFE_SUCCESS (0)
/**
* @brief No Counter Increment
*
* Informational code indicating that a command was processed
* successfully but that the command counter should _not_ be incremented.
*/
#define CFE_STATUS_NO_COUNTER_INCREMENT ((int32)0x48000001)
/**
* @brief Wrong Message Length
*
* This error code will be returned when a message validation process
* determined that the message length is incorrect
*
*/
#define CFE_STATUS_WRONG_MSG_LENGTH ((int32)0xc8000002)
/**
* @brief Unknown Message ID
*
* This error code will be returned when a message identification process
* determined that the message ID does not correspond to a known value
*
*/
#define CFE_STATUS_UNKNOWN_MSG_ID ((int32)0xc8000003)
/**
* @brief Bad Command Code
*
* This error code will be returned when a message identification process
* determined that the command code is does not correspond to any known value
*
*/
#define CFE_STATUS_BAD_COMMAND_CODE ((int32)0xc8000004)
/**
* @brief Not Implemented
*
* Current version does not have the function or the feature
* of the function implemented. This could be due to either an early
* build for this platform or the platform does not support
* the specified feature.
*
*/
#define CFE_STATUS_NOT_IMPLEMENTED ((int32)0xc800ffff)
/*
************* EVENTS SERVICES STATUS CODES *************
*/
/**
* @brief Unknown Filter
*
* #CFE_EVS_Register FilterScheme parameter was illegal
*
*/
#define CFE_EVS_UNKNOWN_FILTER ((int32)0xc2000001)
/**
* @brief Application Not Registered
*
* Calling application never previously called #CFE_EVS_Register
*
*/
#define CFE_EVS_APP_NOT_REGISTERED ((int32)0xc2000002)
/**
* @brief Illegal Application ID
*
* Application ID returned by #CFE_ES_GetAppIDByName is greater
* than #CFE_PLATFORM_ES_MAX_APPLICATIONS
*
*/
#define CFE_EVS_APP_ILLEGAL_APP_ID ((int32)0xc2000003)
/**
* @brief Application Filter Overload
*
* Number of Application event filters input upon
* registration is greater than #CFE_PLATFORM_EVS_MAX_EVENT_FILTERS
*
*/
#define CFE_EVS_APP_FILTER_OVERLOAD ((int32)0xc2000004)
/**
* @brief Reset Area Pointer Failure
*
* Could not get pointer to the ES Reset area, so we could
* not get the pointer to the EVS Log.
*
*/
#define CFE_EVS_RESET_AREA_POINTER ((int32)0xc2000005)
/**
* @brief Event Not Registered
*
* #CFE_EVS_ResetFilter EventID argument was not found in
* any event filter registered by the calling application.
*
*/
#define CFE_EVS_EVT_NOT_REGISTERED ((int32)0xc2000006)
/**
* @brief File Write Error
*
* A file write error occurred while processing an EVS command
*
*/
#define CFE_EVS_FILE_WRITE_ERROR ((int32)0xc2000007)
/**
* @brief Invalid Pointer
*
* Invalid parameter supplied to EVS command
*
*/
#define CFE_EVS_INVALID_PARAMETER ((int32)0xc2000008)
/**
* @brief Function Disabled
*
* EVS command sent that requires a feature currently turned off
* This is to differentiate between "NOT_IMPLEMENTED" where the
* feature IS implemented but it is disabled at runtime.
*/
#define CFE_EVS_FUNCTION_DISABLED ((int32)0xc2000009)
/**
* @brief Not Implemented
*
* Current version of cFE does not have the function or the feature
* of the function implemented. This could be due to either an early
* build of the cFE for this platform or the platform does not support
* the specified feature.
*
*/
#define CFE_EVS_NOT_IMPLEMENTED ((int32)0xc200ffff)
/*
************* EXECUTIVE SERVICES STATUS CODES *************
*/
/**
* @brief Application ID Error
*
* The given application ID does not reflect a currently active application.
*
*/
#define CFE_ES_ERR_APPID ((int32)0xc4000001)
/**
* @brief Application Name Error
*
* There is no match for the given application name in the current application list.
*
*/
#define CFE_ES_ERR_APPNAME ((int32)0xc4000002)
/**
* @brief Invalid Pointer
*
* Invalid pointer argument (NULL)
*
*/
#define CFE_ES_ERR_BUFFER ((int32)0xc4000003)
/**
* @brief Application Create Error
*
* There was an error loading or creating the App.
*
*/
#define CFE_ES_ERR_APP_CREATE ((int32)0xc4000004)
/**
* @brief Child Task Create Error
*
* There was an error creating a child task.
*
*/
#define CFE_ES_ERR_CHILD_TASK_CREATE ((int32)0xc4000005)
/**
* @brief System Log Full
*
* The cFE system Log is full.
* This error means the message was not logged at all
*
*/
#define CFE_ES_ERR_SYS_LOG_FULL ((int32)0xc4000006)
/**
* @brief Memory Handle Error
*
* The Memory Pool handle is invalid.
*
*/
#define CFE_ES_ERR_MEM_HANDLE ((int32)0xc4000007)
/**
* @brief Memory Block Size Error
*
* The block size requested is invalid.
*
*/
#define CFE_ES_ERR_MEM_BLOCK_SIZE ((int32)0xc4000008)
/**
* @brief Load Library Error
*
* Could not load the shared library.
*
*/
#define CFE_ES_ERR_LOAD_LIB ((int32)0xc4000009)
/**
* @brief Bad Argument
*
* Bad parameter passed into an ES API.
*
*/
#define CFE_ES_BAD_ARGUMENT ((int32)0xc400000a)
/**
* @brief Child Task Register Error
*
* Errors occured when trying to register a child task.
*
*/
#define CFE_ES_ERR_CHILD_TASK_REGISTER ((int32)0xc400000b)
/**
* @brief Shell Command Error
*
* Error occured ehen trying to pass a system call to the OS shell
*
*/
#define CFE_ES_ERR_SHELL_CMD ((int32)0xc400000c)
/**
* @brief CDS Already Exists
*
* The Application is receiving the pointer to a CDS that was already present.
*
*/
#define CFE_ES_CDS_ALREADY_EXISTS ((int32)0x4400000d)
/**
* @brief CDS Insufficient Memory
*
* The Application is requesting a CDS Block that is larger than the remaining
* CDS memory.
*
*/
#define CFE_ES_CDS_INSUFFICIENT_MEMORY ((int32)0xc400000e)
/**
* @brief CDS Invalid Name
*
* The Application is requesting a CDS Block with an invalid ASCII string name.
* Either the name is too long (> #CFE_MISSION_ES_CDS_MAX_NAME_LENGTH) or was an empty string.
*
*/
#define CFE_ES_CDS_INVALID_NAME ((int32)0xc400000f)
/**
* @brief CDS Invalid Size
*
* The Application is requesting a CDS Block with a size of zero.
*
*/
#define CFE_ES_CDS_INVALID_SIZE ((int32)0xc4000010)
/**
* @brief CDS Registry Full
*
* The CDS Registry has as many entries in it as it can hold. The
* CDS Registry size can be adjusted with the #CFE_PLATFORM_ES_CDS_MAX_NUM_ENTRIES
* macro defined in the cfe_platform_cfg.h file.
*
*/
#define CFE_ES_CDS_REGISTRY_FULL ((int32)0xc4000011)
/**
* @brief CDS Invalid
*
* The CDS contents are invalid.
*
*/
#define CFE_ES_CDS_INVALID ((int32)0xc4000012)
/**
* @brief CDS Access Error
*
* The CDS was inaccessible
*
*/
#define CFE_ES_CDS_ACCESS_ERROR ((int32)0xc4000013)
/**
* @brief File IO Error
*
* Occurs when a file operation fails
*
*/
#define CFE_ES_FILE_IO_ERR ((int32)0xc4000014)
/**
* @brief Reset Area Access Error
*
* Occurs when the BSP is not successful in returning the reset area address.
*
*/
#define CFE_ES_RST_ACCESS_ERR ((int32)0xc4000015)
/**
* @brief Task ID Error
*
* Occurs when the Task ID passed into #CFE_ES_GetTaskInfo is invalid.
*
*/
#define CFE_ES_ERR_TASKID ((int32)0xc4000016)
/**
* @brief Application Register Error
*
* Occurs when the #CFE_ES_RegisterApp fails.
*
*/
#define CFE_ES_ERR_APP_REGISTER ((int32)0xc4000017)
/**
* @brief Child Task Delete Error
*
* There was an error deleting a child task.
*
*/
#define CFE_ES_ERR_CHILD_TASK_DELETE ((int32)0xc4000018)
/**
* @brief Child Task Delete Passed Main Task
*
* There was an attempt to delete a cFE App Main Task with
* the #CFE_ES_DeleteChildTask API.
*
*/
#define CFE_ES_ERR_CHILD_TASK_DELETE_MAIN_TASK ((int32)0xc4000019)
/**
* @brief CDS Block CRC Error
*
* Occurs when trying to read a CDS Data block and the CRC of the current
* data does not match the stored CRC for the data. Either the contents of
* the CDS Data Block are corrupted or the CDS Control Block is corrupted.
*
*/
#define CFE_ES_CDS_BLOCK_CRC_ERR ((int32)0xc400001A)
/**
* @brief Mutex Semaphore Delete Error
*
* Occurs when trying to delete a Mutex that belongs to a task that ES
* is cleaning up.
*
*/
#define CFE_ES_MUT_SEM_DELETE_ERR ((int32)0xc400001B)
/**
* @brief Binary Semaphore Delete Error
*
* Occurs when trying to delete a Binary Semaphore that belongs to a task that ES
* is cleaning up.
*
*/
#define CFE_ES_BIN_SEM_DELETE_ERR ((int32)0xc400001C)
/**
* @brief Counte Semaphore Delete Error
*
* Occurs when trying to delete a Counting Semaphore that belongs to a task that ES
* is cleaning up.
*
*/
#define CFE_ES_COUNT_SEM_DELETE_ERR ((int32)0xc400001D)
/**
* @brief Queue Delete Error
*
* Occurs when trying to delete a Queue that belongs to a task that ES
* is cleaning up.
*
*/
#define CFE_ES_QUEUE_DELETE_ERR ((int32)0xc400001E)
/**
* @brief File Close Error
*
* Occurs when trying to close a file that belongs to a task that ES
* is cleaning up.
*
*/
#define CFE_ES_FILE_CLOSE_ERR ((int32)0xc400001F)
/**
* @brief CDS Wrong Type Error
*
* Occurs when Table Services is trying to delete a Critical Data Store that
* is not a Critical Table Image or when Executive Services is trying to delete
* a Critical Table Image.
*
*/
#define CFE_ES_CDS_WRONG_TYPE_ERR ((int32)0xc4000020)
/**
* @brief CDS Not Found Error
*
* Occurs when a search of the Critical Data Store Registry does not find a
* critical data store with the specified name.
*
*/
#define CFE_ES_CDS_NOT_FOUND_ERR ((int32)0xc4000021)
/**
* @brief CDS Owner Active Error
*
* Occurs when an attempt was made to delete a CDS when an application
* with the same name associated with the CDS is still present. CDSs
* can ONLY be deleted when Applications that created them are not present
* in the system.
*
*/
#define CFE_ES_CDS_OWNER_ACTIVE_ERR ((int32)0xc4000022)
/**
* @brief Application Cleanup Error
*
* Occurs when an attempt was made to Clean Up an application
* which involves calling Table, EVS, and SB cleanup functions, then
* deleting all ES resources, child tasks, and unloading the
* object module. The approach here is to keep going even though one
* of these steps had an error. There will be syslog messages detailing
* each problem.
*
*/
#define CFE_ES_APP_CLEANUP_ERR ((int32)0xc4000023)
/**
* @brief Timer Delete Error
*
* Occurs when trying to delete a Timer that belongs to a task that ES
* is cleaning up.
*
*/
#define CFE_ES_TIMER_DELETE_ERR ((int32)0xc4000024)
/**
* @brief Buffer Not In Pool
*
* The specified address is not in the memory pool.
*
*/
#define CFE_ES_BUFFER_NOT_IN_POOL ((int32)0xc4000025)
/**
* @brief Task Delete Error
*
* Occurs when trying to delete a task that ES
* is cleaning up.
*
*/
#define CFE_ES_TASK_DELETE_ERR ((int32)0xc4000026)
/**
* @brief Operation Timed Out
*
* Occurs if the timeout for a given operation was exceeded
*
*/
#define CFE_ES_OPERATION_TIMED_OUT ((int32)0xc4000027)
/**
* @brief Library Already Loaded
*
* Occurs if CFE_ES_LoadLibrary detects that the requested
* library name is already loaded.
*
*/
#define CFE_ES_LIB_ALREADY_LOADED ((int32)0x44000028)
/**
* @brief System Log Message Truncated
*
* This information code means the last syslog message was truncated
* due to insufficient space in the log buffer.
*
*/
#define CFE_ES_ERR_SYS_LOG_TRUNCATED ((int32)0x44000028)
/**
* @brief Not Implemented
*
* Current version of cFE does not have the function or the feature
* of the function implemented. This could be due to either an early
* build of the cFE for this platform or the platform does not support
* the specified feature.
*
*/
#define CFE_ES_NOT_IMPLEMENTED ((int32)0xc400ffff)
/*
************* FILE SERVICES STATUS CODES *************
*/
/**
* @brief Bad Argument
*
* A parameter given by a caller to a File Services API did not pass
* validation checks.
*
*/
#define CFE_FS_BAD_ARGUMENT ((int32)0xc6000001)
/**
* @brief Invalid Path
*
* FS was unable to extract a filename from a path string
*
*/
#define CFE_FS_INVALID_PATH ((int32)0xc6000002)
/**
* @brief Filename Too Long
*
* FS filename string is too long
*
*/
#define CFE_FS_FNAME_TOO_LONG ((int32)0xc6000003)
/**
* @brief GZIP File Bad Data
*
* The GZIP file contains invalid data and cannot be read
*/
#define CFE_FS_GZIP_BAD_DATA ((int32)0xc6000004)
/**
* @brief GZIP File Bad Code Block
*
* The GZIP file codeblock is bad, which means the file is
* most likely corrupted
*/
#define CFE_FS_GZIP_BAD_CODE_BLOCK ((int32)0xc6000005)
/**
* @brief GZIP Memory Buffer Exhausted
*
* The memory buffer used by the decompression routine is
* exhausted.
*/
#define CFE_FS_GZIP_NO_MEMORY ((int32)0xc6000006)
/**
* @brief GZIP CRC Error
*
* There is a CRC error in the GZIP file, which means the
* file is most likely corrupted.
*/
#define CFE_FS_GZIP_CRC_ERROR ((int32)0xc6000007)
/**
* @brief GZIP Length Error
*
* There is a length error in the GZIP internal data
* structures, which means the file is most likely corrupted.
*/
#define CFE_FS_GZIP_LENGTH_ERROR ((int32)0xc6000008)
/**
* @brief GZIP Write Error
*
* An error occurred trying to write the uncompressed
* file.
*/
#define CFE_FS_GZIP_WRITE_ERROR ((int32)0xc6000009)
/**
* @brief GZIP Read Error
*
* An error occurred trying to read the GZIP file
*/
#define CFE_FS_GZIP_READ_ERROR ((int32)0xc600000A)
/**
* @brief GZIP Open Output Error
*
* An error occurred trying to open the DestinationFile
* where the GZIP file will be uncompressed. The
* function must be able to open a new write-only file to
* store the uncompressed file in.
*/
#define CFE_FS_GZIP_OPEN_OUTPUT ((int32)0xc600000B)
/**
* @brief GZIP Open Input Error
*
* An error occurred trying to open the GZIP file
* to be decompressed. The function must be able to open
* the GZIP file as read-only in order to decompress it
* to a new file ( most likely in a RAM disk )
*/
#define CFE_FS_GZIP_OPEN_INPUT ((int32)0xc600000C)
/**
* @brief GZIP Read Header Error
*
* An error occured trying to read the GZIP file header,
* which means the file is most likely corrupted or
* not a valid GZIP file.
*/
#define CFE_FS_GZIP_READ_ERROR_HEADER ((int32)0xc600000D)
/**
* @brief GZIP Index Error
*
* An error occurred trying to read the GZIP index,
* which means the file is most likely corrupted.
*/
#define CFE_FS_GZIP_INDEX_ERROR ((int32)0xc600000E)
/**
* @brief GZIP Not Zip File
*
* The file to be decompressed is not a valid GZIP file
*/
#define CFE_FS_GZIP_NON_ZIP_FILE ((int32)0xc600000F)
/**
* @brief Not Implemented
*
* Current version of cFE does not have the function or the feature
* of the function implemented. This could be due to either an early
* build of the cFE for this platform or the platform does not support
* the specified feature.
*
*/
#define CFE_FS_NOT_IMPLEMENTED ((int32)0xc600ffff)
/*
************* OSAPI STATUS CODES *************
*/
#define CFE_OS_ERROR (OS_ERROR) /**< @copydoc OS_ERROR */
#define CFE_OS_INVALID_POINTER (OS_INVALID_POINTER) /**< @copydoc OS_INVALID_POINTER */
#define CFE_OS_ERROR_ADDRESS_MISALIGNED (OS_ERROR_ADDRESS_MISALIGNED) /**< @copydoc OS_ERROR_ADDRESS_MISALIGNED */
#define CFE_OS_ERROR_TIMEOUT (OS_ERROR_TIMEOUT) /**< @copydoc OS_ERROR_TIMEOUT */
#define CFE_OS_INVALID_INT_NUM (OS_INVALID_INT_NUM) /**< @copydoc OS_INVALID_INT_NUM */
#define CFE_OS_SEM_FAILURE (OS_SEM_FAILURE) /**< @copydoc OS_SEM_FAILURE */
#define CFE_OS_SEM_TIMEOUT (OS_SEM_TIMEOUT) /**< @copydoc OS_SEM_TIMEOUT */
#define CFE_OS_QUEUE_EMPTY (OS_QUEUE_EMPTY) /**< @copydoc OS_QUEUE_EMPTY */
#define CFE_OS_QUEUE_FULL (OS_QUEUE_FULL) /**< @copydoc OS_QUEUE_FULL */
#define CFE_OS_QUEUE_TIMEOUT (OS_QUEUE_TIMEOUT) /**< @copydoc OS_QUEUE_TIMEOUT */
#define CFE_OS_QUEUE_INVALID_SIZE (OS_QUEUE_INVALID_SIZE) /**< @copydoc OS_QUEUE_INVALID_SIZE */
#define CFE_OS_QUEUE_ID_ERROR (OS_QUEUE_ID_ERROR) /**< @copydoc OS_QUEUE_ID_ERROR */
#define CFE_OS_ERR_NAME_TOO_LONG (OS_ERR_NAME_TOO_LONG) /**< @copydoc OS_ERR_NAME_TOO_LONG */
#define CFE_OS_ERR_NO_FREE_IDS (OS_ERR_NO_FREE_IDS) /**< @copydoc OS_ERR_NO_FREE_IDS */
#define CFE_OS_ERR_NAME_TAKEN (OS_ERR_NAME_TAKEN) /**< @copydoc OS_ERR_NAME_TAKEN */
#define CFE_OS_ERR_INVALID_ID (OS_ERR_INVALID_ID) /**< @copydoc OS_ERR_INVALID_ID */
#define CFE_OS_ERR_NAME_NOT_FOUND (OS_ERR_NAME_NOT_FOUND) /**< @copydoc OS_ERR_NAME_NOT_FOUND */
#define CFE_OS_ERR_SEM_NOT_FULL (OS_ERR_SEM_NOT_FULL) /**< @copydoc OS_ERR_SEM_NOT_FULL */
#define CFE_OS_ERR_INVALID_PRIORITY (OS_ERR_INVALID_PRIORITY) /**< @copydoc OS_ERR_INVALID_PRIORITY */
#define CFE_OS_ERROR_TASK_ID (OS_ERROR_TASK_ID) /**< @brief This doesn't actually exist */
#define CFE_OS_SEM_UNAVAILABLE (OS_SEM_UNAVAILABLE) /**< @brief This doesn't actually exist */
#define CFE_OS_FS_ERROR (OS_FS_ERROR) /**< @copydoc OS_FS_ERROR */
#define CFE_OS_FS_ERR_INVALID_POINTER (OS_FS_ERR_INVALID_POINTER) /**< @copydoc OS_FS_ERR_INVALID_POINTER */
#define CFE_OS_FS_ERR_PATH_TOO_LONG (OS_FS_ERR_PATH_TOO_LONG) /**< @copydoc OS_FS_ERR_PATH_TOO_LONG */
#define CFE_OS_FS_ERR_NAME_TOO_LONG (OS_FS_ERR_NAME_TOO_LONG) /**< @copydoc OS_FS_ERR_NAME_TOO_LONG */
#define CFE_OS_FS_ERR_DRIVE_NOT_CREATED (OS_FS_ERR_DRIVE_NOT_CREATED) /**< @copydoc OS_FS_ERR_DRIVE_NOT_CREATED */
#define CFE_OSAPI_NOT_IMPLEMENTED (OS_FS_UNIMPLEMENTED) /**< @copydoc OS_FS_UNIMPLEMENTED */
/*
************* SOFTWARE BUS SERVICES STATUS CODES *************
*/
/**
* @brief Time Out
*
* In #CFE_SB_RcvMsg, this return value indicates that a packet has not
* been received in the time given in the "timeout" parameter.
*
*/
#define CFE_SB_TIME_OUT ((int32)0xca000001)
/**
* @brief No Message
*
* When "Polling" a pipe for a message in #CFE_SB_RcvMsg, this return
* value indicates that there was not a message on the pipe.
*
*/
#define CFE_SB_NO_MESSAGE ((int32)0xca000002)
/**
* @brief Bad Argument
*
* A parameter given by a caller to a Software Bus API did not pass
* validation checks.
*
*/
#define CFE_SB_BAD_ARGUMENT ((int32)0xca000003)
/**
* @brief Max Pipes Met
*
* This error code will be returned from #CFE_SB_CreatePipe when the
* SB cannot accomodate the request to create a pipe because the maximum
* number of pipes (#CFE_PLATFORM_SB_MAX_PIPES) are in use. This configuration
* parameter is defined in the cfe_platform_cfg.h file.
*
*/
#define CFE_SB_MAX_PIPES_MET ((int32)0xca000004)
/**
* @brief Pipe Create Error
*
* The maximum number of queues(#OS_MAX_QUEUES) are in use. Or possibly a
* lower level problem with creating the underlying queue has occurred
* such as a lack of memory. If the latter is the problem, the status
* code displayed in the event must be tracked.
*
*/
#define CFE_SB_PIPE_CR_ERR ((int32)0xca000005)
/**
* @brief Pipe Read Error
*
* This return value indicates an error at the Queue read level. This
* error typically cannot be corrected by the caller. Some possible
* causes are: queue was not properly initialized or created, the number
* of bytes read from the queue was not the number of bytes requested in
* the read. The queue id is invalid. Similar errors regarding the pipe
* will be caught by higher level code in the Software Bus.
*
*/
#define CFE_SB_PIPE_RD_ERR ((int32)0xca000006)
/**
* @brief Message Too Big
*
* The size field in the message header indicates the message exceeds the
* max Software Bus message size. The max size is defined by
* configuration parameter #CFE_MISSION_SB_MAX_SB_MSG_SIZE in cfe_mission_cfg.h
*
*/
#define CFE_SB_MSG_TOO_BIG ((int32)0xca000007)
/**
* @brief Buffer Allocation Error
*
* This error code will be returned from #CFE_SB_SendMsg when the memory
* in the SB message buffer pool has been depleted. The amount of memory
* in the pool is dictated by the configuration parameter
* #CFE_PLATFORM_SB_BUF_MEMORY_BYTES specified in the cfe_platform_cfg.h file. Also
* the memory statistics, including current utilization figures and high
* water marks for the SB Buffer memory pool can be monitored by sending
* a Software Bus command to send the SB statistics packet.
*
*/
#define CFE_SB_BUF_ALOC_ERR ((int32)0xca000008)
/**
* @brief Max Messages Met
*
* Will be returned when calling one of the SB subscription API's if the
* SB routing table cannot accomodate another unique message ID because
* the platform configuration parameter #CFE_PLATFORM_SB_MAX_MSG_IDS has been met.
*
*/
#define CFE_SB_MAX_MSGS_MET ((int32)0xca000009)
/**
* @brief Max Destinations Met
*
* Will be returned when calling one of the SB subscription API's if the
* SB routing table cannot accomodate another destination for a
* particular the given message ID. This occurs when the number of
* destinations in use meets the platform configuration parameter
* #CFE_PLATFORM_SB_MAX_DEST_PER_PKT.
*
*/
#define CFE_SB_MAX_DESTS_MET ((int32)0xca00000a)
/**
* @brief No Subscribers
*
* This error code is returned by the #CFE_SB_Unsubscribe API if there has
* not been an entry in the routing tables for the MsgId/PipeId given as
* parameters.
*/
#define CFE_SB_NO_SUBSCRIBERS ((int32)0xca00000b)
/**
* @brief Internal Error
*
* This error code will be returned by the #CFE_SB_Subscribe API if the
* code detects an internal index is out of range. The most likely
* cause would be a Single Event Upset.
*
*/
#define CFE_SB_INTERNAL_ERR ((int32)0xca00000c)
/**
* @brief Wrong Message Type
*
* This error code will be returned when a request such as #CFE_SB_SetMsgTime
* is made on a packet that does not include a field for msg time.
*
*/
#define CFE_SB_WRONG_MSG_TYPE ((int32)0xca00000d)
/**
* @brief Buffer Invalid
*
* This error code will be returned when a request to release or send a
* zero copy buffer is invalid, such as if the handle or buffer is not
* correct or the buffer was previously released.
*
*/
#define CFE_SB_BUFFER_INVALID ((int32)0xca00000e)
/**
* @brief Not Implemented
*
* Current version of cFE does not have the function or the feature
* of the function implemented. This could be due to either an early
* build of the cFE for this platform or the platform does not support
* the specified feature.
*
*/
#define CFE_SB_NOT_IMPLEMENTED ((int32)0xca00ffff)
/*
************* TABLE SERVICES STATUS CODES *************
*/
/**
* @brief Invalid Handle
*
* The calling Application attempted to pass a