eive-obsw/mission/tmtc/TmStore.h
Robin Mueller d5867f104f
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good
continue tm store
2022-10-25 18:20:21 +02:00

39 lines
1008 B
C++

#ifndef MISSION_TMTC_TMSTOREBACKEND_H_
#define MISSION_TMTC_TMSTOREBACKEND_H_
#include <mission/memory/SdCardMountedIF.h>
#include <fsfw/objectmanager/SystemObject.h>
#include <fsfw/tmstorage/TmStoreFrontendIF.h>
#include <fsfw/tmtcpacket/pus/tm/PusTmReader.h>
#include <fsfw/tmtcservices/AcceptsTelemetryIF.h>
struct PacketFilter {
std::optional<uint16_t> apid;
std::optional<uint8_t> service;
std::optional<std::pair<uint8_t, uint8_t>> serviceSubservice;
};
class TmStore : public SystemObject {
public:
TmStore(object_id_t objectId, SdCardMountedIF& sdcMan);
ReturnValue_t passPacket(PusTmReader& reader);
private:
/**
* To get the queue where commands shall be sent.
* @return Id of command queue.
*/
MessageQueueId_t getCommandQueue();
SdCardMountedIF& sdcMan;
std::vector<uint16_t> apidToStore;
std::vector<uint8_t> servicesToStore;
std::vector<std::pair<uint8_t, uint8_t>> serviceSubserviceCombinationToStore;
};
#endif /* MISSION_TMTC_TMSTOREBACKEND_H_ */