2022-10-21 11:51:44 +02:00
|
|
|
#ifndef FSFW_EXAMPLE_COMMON_CFDPTMFUNNEL_H
|
|
|
|
#define FSFW_EXAMPLE_COMMON_CFDPTMFUNNEL_H
|
|
|
|
|
2022-11-02 10:20:14 +01:00
|
|
|
#include <mission/tmtc/TmFunnelBase.h>
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
2022-10-21 11:51:44 +02:00
|
|
|
#include "fsfw/objectmanager/SystemObject.h"
|
|
|
|
#include "fsfw/storagemanager/StorageManagerIF.h"
|
|
|
|
#include "fsfw/tmtcservices/AcceptsTelemetryIF.h"
|
|
|
|
#include "fsfw/tmtcservices/TmTcMessage.h"
|
|
|
|
|
2022-11-02 10:20:14 +01:00
|
|
|
class CfdpTmFunnel : public TmFunnelBase {
|
2022-10-21 11:51:44 +02:00
|
|
|
public:
|
2023-03-10 16:49:12 +01:00
|
|
|
CfdpTmFunnel(TmFunnelBase::FunnelCfg cfg, MessageQueueId_t fileStoreDest,
|
|
|
|
StorageManagerIF& ramToFileStore, uint16_t cfdpInCcsdsApid);
|
2022-10-21 11:51:44 +02:00
|
|
|
[[nodiscard]] const char* getName() const override;
|
|
|
|
ReturnValue_t performOperation(uint8_t opCode);
|
|
|
|
ReturnValue_t initialize() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
ReturnValue_t handlePacket(TmTcMessage& msg);
|
|
|
|
|
2023-03-10 16:49:12 +01:00
|
|
|
MessageQueueId_t fileStoreDest;
|
|
|
|
StorageManagerIF& ramToFileStore;
|
2022-10-21 11:51:44 +02:00
|
|
|
uint16_t sourceSequenceCount = 0;
|
|
|
|
uint16_t cfdpInCcsdsApid;
|
|
|
|
};
|
|
|
|
#endif // FSFW_EXAMPLE_COMMON_CFDPTMFUNNEL_H
|