CFDP SOURCE handler #157

Merged
muellerr merged 107 commits from cfdp-source-handler into develop 2023-10-19 10:59:55 +02:00
2 changed files with 4 additions and 0 deletions
Showing only changes of commit 896b7a7358 - Show all commits

View File

@ -4,6 +4,7 @@
#include <array>
#include "fsfw/cfdp/pdu/FileDataCreator.h"
#include "fsfw/cfdp/pdu/MetadataPduCreator.h"
#include "fsfw/filesystem/HasFileSystemIF.h"
#include "fsfw/objectmanager.h"
@ -179,6 +180,8 @@ ReturnValue_t cfdp::SourceHandler::prepareAndSendMetadataPdu() {
ReturnValue_t cfdp::SourceHandler::prepareAndSendNextFileDataPdu() {
// TODO: Implement
// auto fileDataInfo = FileDataInfo(transactionParams.fileSize);
// auto fileDataPdu = FileDataCreator();
// Advance FSM after all file data PDUs were sent
step = TransactionStep::SENDING_EOF;
return OK;

View File

@ -65,6 +65,7 @@ class SourceHandler {
std::array<char, 524> destName{};
size_t destNameSize = 0;
cfdp::FileSize fileSize;
size_t currentFilePos = 0;
bool closureRequested = false;
PduConfig pduConf;
} transactionParams;