eive-obsw/mission/utility/TmFunnel.h

51 lines
1.3 KiB
C
Raw Normal View History

2020-09-16 16:22:36 +02:00
#ifndef MISSION_UTILITY_TMFUNNEL_H_
#define MISSION_UTILITY_TMFUNNEL_H_
#include <fsfw/objectmanager/SystemObject.h>
#include <fsfw/tasks/ExecutableObjectIF.h>
#include <fsfw/tmtcservices/AcceptsTelemetryIF.h>
#include <fsfw/ipc/MessageQueueIF.h>
#include <fsfw/tmtcservices/TmTcMessage.h>
namespace Factory{
void setStaticFrameworkObjectIds();
}
/**
* @brief TM Recipient.
* @details
* Main telemetry receiver. All generated telemetry is funneled into
* this object.
* @ingroup utility
* @author J. Meier
*/
class TmFunnel: public AcceptsTelemetryIF,
public ExecutableObjectIF,
public SystemObject {
friend void (Factory::setStaticFrameworkObjectIds)();
public:
2020-09-30 17:17:01 +02:00
TmFunnel(object_id_t objectId, uint32_t messageDepth = 20);
2020-09-16 16:22:36 +02:00
virtual ~TmFunnel();
virtual MessageQueueId_t getReportReceptionQueue(
uint8_t virtualChannel = 0) override;
virtual ReturnValue_t performOperation(uint8_t operationCode = 0) override;
virtual ReturnValue_t initialize() override;
protected:
static object_id_t downlinkDestination;
static object_id_t storageDestination;
private:
2020-09-30 17:17:01 +02:00
uint16_t sourceSequenceCount = 0;
2020-09-16 16:22:36 +02:00
MessageQueueIF* tmQueue = nullptr;
MessageQueueIF* storageQueue = nullptr;
2021-09-22 16:54:55 +02:00
StorageManagerIF* tmStore = nullptr;
2020-09-30 17:17:01 +02:00
uint32_t messageDepth = 0;
2020-09-16 16:22:36 +02:00
ReturnValue_t handlePacket(TmTcMessage* message);
};
#endif /* MISSION_UTILITY_TMFUNNEL_H_ */