continue source handler

This commit is contained in:
Robin Müller 2023-07-17 14:54:45 +02:00
parent 06ef498a18
commit 972dc7e19e
Signed by: muellerr
GPG Key ID: 407F9B00F858F270
3 changed files with 5 additions and 2 deletions

View File

@ -97,5 +97,6 @@ ReturnValue_t cfdp::SourceHandler::putRequest(PutRequestFull& putRequest, Remote
return FAILED; return FAILED;
} }
std::memcpy(transactionParams.destName.data(), putRequest.destName, putRequest.destNameSize); std::memcpy(transactionParams.destName.data(), putRequest.destName, putRequest.destNameSize);
return 0; currentRemoteCfg = cfg;
return OK;
} }

View File

@ -63,6 +63,7 @@ class SourceHandler {
TransactionStep step = TransactionStep::IDLE; TransactionStep step = TransactionStep::IDLE;
SourceHandlerParams sourceParams; SourceHandlerParams sourceParams;
cfdp::FsfwParams fsfwParams; cfdp::FsfwParams fsfwParams;
RemoteEntityCfg currentRemoteCfg;
void fsmNacked(); void fsmNacked();
ReturnValue_t checksumGeneration(); ReturnValue_t checksumGeneration();

View File

@ -27,6 +27,7 @@ struct LocalEntityCfg {
}; };
struct RemoteEntityCfg { struct RemoteEntityCfg {
RemoteEntityCfg() = default;
explicit RemoteEntityCfg(EntityId id) : remoteId(std::move(id)) {} explicit RemoteEntityCfg(EntityId id) : remoteId(std::move(id)) {}
EntityId remoteId; EntityId remoteId;
size_t maxFileSegmentLen = 2048; size_t maxFileSegmentLen = 2048;
@ -34,7 +35,7 @@ struct RemoteEntityCfg {
bool crcOnTransmission = false; bool crcOnTransmission = false;
TransmissionMode defaultTransmissionMode = TransmissionMode::UNACKNOWLEDGED; TransmissionMode defaultTransmissionMode = TransmissionMode::UNACKNOWLEDGED;
ChecksumType defaultChecksum = ChecksumType::NULL_CHECKSUM; ChecksumType defaultChecksum = ChecksumType::NULL_CHECKSUM;
const uint8_t version = CFDP_VERSION_2; uint8_t version = CFDP_VERSION_2;
}; };
} // namespace cfdp } // namespace cfdp