Skip to content

Commit 8b3759d

Browse files
CF -> CFDP file rename complete
1 parent 70315d5 commit 8b3759d

22 files changed

Lines changed: 750 additions & 638 deletions

Svc/Ccsds/CfdpManager/CMakeLists.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ register_fprime_library(
1717
"${CMAKE_CURRENT_LIST_DIR}/CfdpCfg.fpp"
1818
SOURCES
1919
"${CMAKE_CURRENT_LIST_DIR}/CfdpManager.cpp"
20-
"${CMAKE_CURRENT_LIST_DIR}/cf_codec.cpp"
21-
"${CMAKE_CURRENT_LIST_DIR}/cf_cfdp.cpp"
22-
"${CMAKE_CURRENT_LIST_DIR}/cf_cfdp_r.cpp"
23-
"${CMAKE_CURRENT_LIST_DIR}/cf_cfdp_s.cpp"
24-
"${CMAKE_CURRENT_LIST_DIR}/cf_chunk.cpp"
25-
"${CMAKE_CURRENT_LIST_DIR}/cf_clist.cpp"
26-
"${CMAKE_CURRENT_LIST_DIR}/cf_utils.cpp"
27-
"${CMAKE_CURRENT_LIST_DIR}/cf_cfdp_dispatch.cpp"
20+
"${CMAKE_CURRENT_LIST_DIR}/CfdpEngine.cpp"
21+
"${CMAKE_CURRENT_LIST_DIR}/CfdpCodec.cpp"
22+
"${CMAKE_CURRENT_LIST_DIR}/CfdpRx.cpp"
23+
"${CMAKE_CURRENT_LIST_DIR}/CfdpTx.cpp"
24+
"${CMAKE_CURRENT_LIST_DIR}/CfdpChunk.cpp"
25+
"${CMAKE_CURRENT_LIST_DIR}/CfdpClist.cpp"
26+
"${CMAKE_CURRENT_LIST_DIR}/CfdpUtils.cpp"
27+
"${CMAKE_CURRENT_LIST_DIR}/CfdpDispatch.cpp"
2828
"${CMAKE_CURRENT_LIST_DIR}/CfeStubs.hpp"
2929
"${CMAKE_CURRENT_LIST_DIR}/CfdpTimer.cpp"
3030
# TODO This should be moved to the F' config directory

Svc/Ccsds/CfdpManager/CfdpChunk.cpp

Lines changed: 36 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,44 @@
1-
/************************************************************************
2-
* NASA Docket No. GSC-18,447-1, and identified as “CFS CFDP (CF)
3-
* Application version 3.0.0”
4-
*
5-
* Copyright (c) 2019 United States Government as represented by the
6-
* Administrator of the National Aeronautics and Space Administration.
7-
* All Rights Reserved.
8-
*
9-
* Licensed under the Apache License, Version 2.0 (the "License"); you may
10-
* not use this file except in compliance with the License. You may obtain
11-
* a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
12-
*
13-
* Unless required by applicable law or agreed to in writing, software
14-
* distributed under the License is distributed on an "AS IS" BASIS,
15-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16-
* See the License for the specific language governing permissions and
17-
* limitations under the License.
18-
************************************************************************/
19-
20-
/**
21-
* @file
22-
*
23-
* The CF Application chunks (sparse gap tracking) logic file
24-
*
25-
* This class handles the complexity of sparse gap tracking so that
26-
* the CFDP engine doesn't need to worry about it. Information is given
27-
* to the class and when needed calculations are made internally to
28-
* help the engine build NAK packets. Received NAK segment requests
29-
* are stored in this class as well and used for re-transmit processing.
30-
*
31-
* This is intended to be mostly a generic purpose class used by CF.
32-
*/
1+
// ======================================================================
2+
// \title CfdpChunk.cpp
3+
// \brief CFDP chunks (sparse gap tracking) logic file
4+
//
5+
// This file is a port of the cf_chunks.cpp file from the
6+
// NASA Core Flight System (cFS) CFDP (CF) Application,
7+
// version 3.0.0, adapted for use within the F-Prime (F') framework.
8+
//
9+
// This class handles the complexity of sparse gap tracking so that
10+
// the CFDP engine doesn't need to worry about it. Information is given
11+
// to the class and when needed calculations are made internally to
12+
// help the engine build NAK packets. Received NAK segment requests
13+
// are stored in this class as well and used for re-transmit processing.
14+
//
15+
// ======================================================================
16+
//
17+
// NASA Docket No. GSC-18,447-1
18+
//
19+
// Copyright (c) 2019 United States Government as represented by the
20+
// Administrator of the National Aeronautics and Space Administration.
21+
// All Rights Reserved.
22+
//
23+
// Licensed under the Apache License, Version 2.0 (the "License"); you may
24+
// not use this file except in compliance with the License. You may obtain
25+
// a copy of the License at
26+
//
27+
// http://www.apache.org/licenses/LICENSE-2.0
28+
//
29+
// Unless required by applicable law or agreed to in writing, software
30+
// distributed under the License is distributed on an "AS IS" BASIS,
31+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32+
// See the License for the specific language governing permissions and
33+
// limitations under the License.
34+
//
35+
// ======================================================================
3336

3437
#include <string.h>
3538

3639
#include <Fw/Types/Assert.hpp>
3740

38-
#include "cf_chunk.hpp"
41+
#include "CfdpChunk.hpp"
3942

4043
namespace Svc {
4144
namespace Ccsds {

Svc/Ccsds/CfdpManager/CfdpChunk.hpp

Lines changed: 32 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,35 @@
1-
/************************************************************************
2-
* NASA Docket No. GSC-18,447-1, and identified as “CFS CFDP (CF)
3-
* Application version 3.0.0”
4-
*
5-
* Copyright (c) 2019 United States Government as represented by the
6-
* Administrator of the National Aeronautics and Space Administration.
7-
* All Rights Reserved.
8-
*
9-
* Licensed under the Apache License, Version 2.0 (the "License"); you may
10-
* not use this file except in compliance with the License. You may obtain
11-
* a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
12-
*
13-
* Unless required by applicable law or agreed to in writing, software
14-
* distributed under the License is distributed on an "AS IS" BASIS,
15-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16-
* See the License for the specific language governing permissions and
17-
* limitations under the License.
18-
************************************************************************/
1+
// ======================================================================
2+
// \title CfdpChunks.hpp
3+
// \brief CFDP chunks (spare gap tracking) header file
4+
//
5+
// This file is a port of the cf_chunks.hpp file from the
6+
// NASA Core Flight System (cFS) CFDP (CF) Application,
7+
// version 3.0.0, adapted for use within the F-Prime (F') framework.
8+
//
9+
// ======================================================================
10+
//
11+
// NASA Docket No. GSC-18,447-1
12+
//
13+
// Copyright (c) 2019 United States Government as represented by the
14+
// Administrator of the National Aeronautics and Space Administration.
15+
// All Rights Reserved.
16+
//
17+
// Licensed under the Apache License, Version 2.0 (the "License"); you may
18+
// not use this file except in compliance with the License. You may obtain
19+
// a copy of the License at
20+
//
21+
// http://www.apache.org/licenses/LICENSE-2.0
22+
//
23+
// Unless required by applicable law or agreed to in writing, software
24+
// distributed under the License is distributed on an "AS IS" BASIS,
25+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
26+
// See the License for the specific language governing permissions and
27+
// limitations under the License.
28+
//
29+
// ======================================================================
1930

20-
/**
21-
* @file
22-
*
23-
* The CF Application chunks (spare gap tracking) header file
24-
*/
25-
26-
#ifndef CF_CHUNK_HPP
27-
#define CF_CHUNK_HPP
31+
#ifndef CFDP_CHUNK_HPP
32+
#define CFDP_CHUNK_HPP
2833

2934
#include <Fw/FPrimeBasicTypes.hpp>
3035
#include <Svc/Ccsds/CfdpManager/CfdpStatusEnumAc.hpp>
@@ -317,4 +322,4 @@ void CF_Chunks_Insert(CF_ChunkList_t *chunks, CF_ChunkIdx_t i, const CF_Chunk_t
317322
} // namespace Ccsds
318323
} // namespace Svc
319324

320-
#endif /* !CF_CHUNK_HPP */
325+
#endif /* !CFDP_CHUNK_HPP */

Svc/Ccsds/CfdpManager/CfdpClist.cpp

Lines changed: 34 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,37 @@
1-
/************************************************************************
2-
* NASA Docket No. GSC-18,447-1, and identified as “CFS CFDP (CF)
3-
* Application version 3.0.0”
4-
*
5-
* Copyright (c) 2019 United States Government as represented by the
6-
* Administrator of the National Aeronautics and Space Administration.
7-
* All Rights Reserved.
8-
*
9-
* Licensed under the Apache License, Version 2.0 (the "License"); you may
10-
* not use this file except in compliance with the License. You may obtain
11-
* a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
12-
*
13-
* Unless required by applicable law or agreed to in writing, software
14-
* distributed under the License is distributed on an "AS IS" BASIS,
15-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16-
* See the License for the specific language governing permissions and
17-
* limitations under the License.
18-
************************************************************************/
19-
20-
/**
21-
* @file
22-
*
23-
* The CF Application circular list definition source file
24-
*
25-
* This is a circular doubly-linked list implementation. It is used for
26-
* all data structures in CF.
27-
*
28-
* This file is intended to be a generic class that can be used in other apps.
29-
*/
30-
31-
#include "cf_clist.hpp"
1+
// ======================================================================
2+
// \title CfdpClist.cpp
3+
// \brief CFDP circular list definition source file
4+
//
5+
// This file is a port of the cf_clist.cpp file from the
6+
// NASA Core Flight System (cFS) CFDP (CF) Application,
7+
// version 3.0.0, adapted for use within the F-Prime (F') framework.
8+
//
9+
// This is a circular doubly-linked list implementation. It is used for
10+
// multiple data structures in CFDP.
11+
//
12+
// ======================================================================
13+
//
14+
// NASA Docket No. GSC-18,447-1
15+
//
16+
// Copyright (c) 2019 United States Government as represented by the
17+
// Administrator of the National Aeronautics and Space Administration.
18+
// All Rights Reserved.
19+
//
20+
// Licensed under the Apache License, Version 2.0 (the "License"); you may
21+
// not use this file except in compliance with the License. You may obtain
22+
// a copy of the License at
23+
//
24+
// http://www.apache.org/licenses/LICENSE-2.0
25+
//
26+
// Unless required by applicable law or agreed to in writing, software
27+
// distributed under the License is distributed on an "AS IS" BASIS,
28+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
29+
// See the License for the specific language governing permissions and
30+
// limitations under the License.
31+
//
32+
// ======================================================================
33+
34+
#include "CfdpClist.hpp"
3235

3336
#include <Fw/Types/Assert.hpp>
3437

Svc/Ccsds/CfdpManager/CfdpClist.hpp

Lines changed: 33 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,40 @@
1-
/************************************************************************
2-
* NASA Docket No. GSC-18,447-1, and identified as “CFS CFDP (CF)
3-
* Application version 3.0.0”
4-
*
5-
* Copyright (c) 2019 United States Government as represented by the
6-
* Administrator of the National Aeronautics and Space Administration.
7-
* All Rights Reserved.
8-
*
9-
* Licensed under the Apache License, Version 2.0 (the "License"); you may
10-
* not use this file except in compliance with the License. You may obtain
11-
* a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
12-
*
13-
* Unless required by applicable law or agreed to in writing, software
14-
* distributed under the License is distributed on an "AS IS" BASIS,
15-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16-
* See the License for the specific language governing permissions and
17-
* limitations under the License.
18-
************************************************************************/
19-
20-
/**
21-
* @file
22-
*
23-
* The CF Application circular list header file
24-
*/
25-
26-
#ifndef CF_CLIST_HPP
27-
#define CF_CLIST_HPP
1+
// ======================================================================
2+
// \title CfdpClist.hpp
3+
// \brief CFDP circular list header file
4+
//
5+
// This file is a port of the cf_clist.hpp file from the
6+
// NASA Core Flight System (cFS) CFDP (CF) Application,
7+
// version 3.0.0, adapted for use within the F-Prime (F') framework.
8+
//
9+
// ======================================================================
10+
//
11+
// NASA Docket No. GSC-18,447-1
12+
//
13+
// Copyright (c) 2019 United States Government as represented by the
14+
// Administrator of the National Aeronautics and Space Administration.
15+
// All Rights Reserved.
16+
//
17+
// Licensed under the Apache License, Version 2.0 (the "License"); you may
18+
// not use this file except in compliance with the License. You may obtain
19+
// a copy of the License at
20+
//
21+
// http://www.apache.org/licenses/LICENSE-2.0
22+
//
23+
// Unless required by applicable law or agreed to in writing, software
24+
// distributed under the License is distributed on an "AS IS" BASIS,
25+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
26+
// See the License for the specific language governing permissions and
27+
// limitations under the License.
28+
//
29+
// ======================================================================
30+
31+
#ifndef CFDP_CLIST_HPP
32+
#define CFDP_CLIST_HPP
2833

2934
#include <cstddef>
3035
#include <stddef.h>
3136
#include <stdbool.h>
3237

33-
3438
namespace Svc {
3539
namespace Ccsds {
3640

@@ -194,4 +198,4 @@ void CF_CList_Traverse_R(CF_CListNode_t *end, CF_CListFn_t fn, void *context);
194198
} // namespace Ccsds
195199
} // namespace Svc
196200

197-
#endif /* !CF_CLIST_HPP */
201+
#endif /* !CFDP_CLIST_HPP */

0 commit comments

Comments
 (0)