-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix-109-variable-declarations
- Loading branch information
Showing
60 changed files
with
2,321 additions
and
1,365 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
/************************************************************************ | ||
* NASA Docket No. GSC-18,447-1, and identified as “CFS CFDP (CF) | ||
* Application version 3.0.0” | ||
* | ||
* Copyright (c) 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. | ||
************************************************************************/ | ||
|
||
/** | ||
* @file | ||
* | ||
* Declarations and prototypes for cf_extern_typedefs module | ||
*/ | ||
|
||
#ifndef CF_EXTERN_TYPEDEFS_H | ||
#define CF_EXTERN_TYPEDEFS_H | ||
|
||
#include "cf_platform_cfg.h" | ||
|
||
/** | ||
* @brief Values for CFDP file transfer class | ||
* | ||
* The CFDP specification prescribes two classes/modes of file | ||
* transfer protocol operation - unacknowledged/simple or | ||
* acknowledged/reliable. | ||
* | ||
* Defined per section 7.1 of CCSDS 727.0-B-5 | ||
*/ | ||
typedef enum | ||
{ | ||
CF_CFDP_CLASS_1 = 0, /**< \brief CFDP class 1 - Unreliable transfer */ | ||
CF_CFDP_CLASS_2 = 1, /**< \brief CFDP class 2 - Reliable transfer */ | ||
} CF_CFDP_Class_t; | ||
|
||
/** | ||
* @brief CF queue identifiers | ||
*/ | ||
typedef enum | ||
{ | ||
CF_QueueIdx_PEND = 0, /**< \brief first one on this list is active */ | ||
CF_QueueIdx_TXA = 1, | ||
CF_QueueIdx_TXW = 2, | ||
CF_QueueIdx_RX = 3, | ||
CF_QueueIdx_HIST = 4, | ||
CF_QueueIdx_HIST_FREE = 5, | ||
CF_QueueIdx_FREE = 6, | ||
CF_QueueIdx_NUM = 7, | ||
} CF_QueueIdx_t; | ||
|
||
/** | ||
* @brief Cache of source and destination filename | ||
* | ||
* This pairs a source and destination file name together | ||
* to be retained for future reference in the transaction/history | ||
*/ | ||
typedef struct CF_TxnFilenames | ||
{ | ||
char src_filename[CF_FILENAME_MAX_LEN]; | ||
char dst_filename[CF_FILENAME_MAX_LEN]; | ||
} CF_TxnFilenames_t; | ||
|
||
#endif /* CF_EXTERN_TYPEDEFS_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.