CFDP SOURCE handler #157
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user