CFDP SOURCE handler #157
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
|
|
||||||
|
#include "fsfw/cfdp/pdu/FileDataCreator.h"
|
||||||
#include "fsfw/cfdp/pdu/MetadataPduCreator.h"
|
#include "fsfw/cfdp/pdu/MetadataPduCreator.h"
|
||||||
#include "fsfw/filesystem/HasFileSystemIF.h"
|
#include "fsfw/filesystem/HasFileSystemIF.h"
|
||||||
#include "fsfw/objectmanager.h"
|
#include "fsfw/objectmanager.h"
|
||||||
@ -179,6 +180,8 @@ ReturnValue_t cfdp::SourceHandler::prepareAndSendMetadataPdu() {
|
|||||||
|
|
||||||
ReturnValue_t cfdp::SourceHandler::prepareAndSendNextFileDataPdu() {
|
ReturnValue_t cfdp::SourceHandler::prepareAndSendNextFileDataPdu() {
|
||||||
// TODO: Implement
|
// TODO: Implement
|
||||||
|
// auto fileDataInfo = FileDataInfo(transactionParams.fileSize);
|
||||||
|
// auto fileDataPdu = FileDataCreator();
|
||||||
// Advance FSM after all file data PDUs were sent
|
// Advance FSM after all file data PDUs were sent
|
||||||
step = TransactionStep::SENDING_EOF;
|
step = TransactionStep::SENDING_EOF;
|
||||||
return OK;
|
return OK;
|
||||||
|
@ -65,6 +65,7 @@ class SourceHandler {
|
|||||||
std::array<char, 524> destName{};
|
std::array<char, 524> destName{};
|
||||||
size_t destNameSize = 0;
|
size_t destNameSize = 0;
|
||||||
cfdp::FileSize fileSize;
|
cfdp::FileSize fileSize;
|
||||||
|
size_t currentFilePos = 0;
|
||||||
bool closureRequested = false;
|
bool closureRequested = false;
|
||||||
PduConfig pduConf;
|
PduConfig pduConf;
|
||||||
} transactionParams;
|
} transactionParams;
|
||||||
|
Loading…
Reference in New Issue
Block a user