put request support baseline

This commit is contained in:
Robin Müller 2023-07-17 13:28:32 +02:00
parent 3b1da85229
commit 95b77ed826
Signed by: muellerr
GPG Key ID: 407F9B00F858F270
3 changed files with 12 additions and 2 deletions

View File

@ -82,4 +82,4 @@ ReturnValue_t cfdp::SourceHandler::checksumGeneration() {
return OK;
}
ReturnValue_t cfdp::SourceHandler::putRequest() { return 0; }
ReturnValue_t cfdp::SourceHandler::putRequest(PutRequestFull& putRequest) { return 0; }

View File

@ -31,7 +31,7 @@ class SourceHandler {
* the state machine
* @return
*/
ReturnValue_t putRequest();
ReturnValue_t putRequest(PutRequestFull& putRequest);
void stateMachine();
private:

View File

@ -47,6 +47,16 @@ template <size_t SIZE>
using PacketInfoList = etl::list<PacketInfo, SIZE>;
using PacketInfoListBase = etl::ilist<PacketInfo>;
struct PutRequestFull {
EntityId destId;
TransmissionMode transmissionMode;
char destName[524];
size_t destNameSize;
char sourceName[524];
size_t sourceNameSize;
bool closureRequested;
};
namespace events {
static constexpr Event STORE_ERROR = event::makeEvent(SSID, 0, severity::LOW);