fsfw/src/fsfw/tcdistribution/CcsdsUnpacker.h

25 lines
879 B
C
Raw Normal View History

#ifndef FSFW_TCDISTRIBUTION_CCSDSUNPACKER_H
#define FSFW_TCDISTRIBUTION_CCSDSUNPACKER_H
2022-07-29 16:32:50 +02:00
#include "fsfw/storagemanager/StorageManagerIF.h"
#include "fsfw/tasks/ExecutableObjectIF.h"
#include "fsfw/tmtcservices/AcceptsTelecommandsIF.h"
2022-07-29 15:54:17 +02:00
class CcsdsUnpacker : public ExecutableObjectIF, public AcceptsTelecommandsIF {
public:
2022-08-01 17:16:37 +02:00
CcsdsUnpacker(MessageQueueIF& msgQueue, AcceptsTelecommandsIF& receiver,
StorageManagerIF& sourceStore);
2022-07-29 16:32:50 +02:00
void setDifferentTargetStore(StorageManagerIF& otherTargetStore);
ReturnValue_t performOperation(uint8_t operationCode) override;
uint32_t getIdentifier() const override;
MessageQueueId_t getRequestQueue() const override;
private:
2022-07-29 16:32:50 +02:00
StorageManagerIF& sourceStore;
StorageManagerIF* targetStore = nullptr;
MessageQueueIF& msgQueue;
AcceptsTelecommandsIF& receiver;
};
#endif // FSFW_TCDISTRIBUTION_CCSDSUNPACKER_H