2022-11-02 10:26:45 +01:00
|
|
|
#ifndef MISSION_TMTC_TMFUNNELBASE_H_
|
|
|
|
#define MISSION_TMTC_TMFUNNELBASE_H_
|
|
|
|
|
|
|
|
#include <fsfw/objectmanager/SystemObject.h>
|
|
|
|
#include <fsfw/storagemanager/StorageManagerIF.h>
|
|
|
|
#include <fsfw/tmtcservices/AcceptsTelemetryIF.h>
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class TmFunnelBase : public AcceptsTelemetryIF, public SystemObject {
|
|
|
|
public:
|
|
|
|
TmFunnelBase(object_id_t objectId, StorageManagerIF& tmStore, uint32_t tmMsgDepth);
|
2023-02-07 17:18:13 +01:00
|
|
|
void addDestination(const char* name, const AcceptsTelemetryIF& downlinkDestination,
|
|
|
|
uint8_t vcid = 0);
|
2022-11-02 10:26:45 +01:00
|
|
|
[[nodiscard]] MessageQueueId_t getReportReceptionQueue(uint8_t virtualChannel) const override;
|
|
|
|
|
|
|
|
virtual ~TmFunnelBase();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
StorageManagerIF& tmStore;
|
2023-02-07 17:18:13 +01:00
|
|
|
struct Destination {
|
|
|
|
Destination(const char* name, MessageQueueId_t queueId, uint8_t virtualChannel)
|
|
|
|
: name(name), queueId(queueId), virtualChannel(virtualChannel) {}
|
|
|
|
|
|
|
|
const char* name;
|
|
|
|
MessageQueueId_t queueId;
|
|
|
|
uint8_t virtualChannel = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
std::vector<Destination> destinations;
|
|
|
|
|
2022-11-02 10:26:45 +01:00
|
|
|
MessageQueueIF* tmQueue = nullptr;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* MISSION_TMTC_TMFUNNELBASE_H_ */
|