fsfw-example-common/example/test/FsfwReaderTask.h

25 lines
738 B
C
Raw Normal View History

2021-06-08 13:35:49 +02:00
#ifndef MISSION_DEMO_FSFWPERIODICTASK_H_
#define MISSION_DEMO_FSFWPERIODICTASK_H_
#include <fsfw/globalfunctions/PeriodicOperationDivider.h>
#include <fsfw/objectmanager/SystemObject.h>
2022-05-05 20:55:28 +02:00
#include <fsfw/tasks/ExecutableObjectIF.h>
#include "testdefinitions/demoDefinitions.h"
2021-06-08 13:35:49 +02:00
2022-05-05 20:55:28 +02:00
class FsfwReaderTask : public ExecutableObjectIF, public SystemObject {
2022-08-08 12:32:06 +02:00
public:
2022-05-05 20:55:28 +02:00
FsfwReaderTask(object_id_t objectId, bool enablePrintout);
~FsfwReaderTask() override;
2021-06-08 13:35:49 +02:00
2022-05-05 20:55:28 +02:00
ReturnValue_t initializeAfterTaskCreation() override;
ReturnValue_t performOperation(uint8_t operationCode = 0) override;
2021-06-08 13:35:49 +02:00
2022-08-08 12:32:06 +02:00
private:
2022-05-05 20:55:28 +02:00
bool printoutEnabled = false;
PeriodicOperationDivider opDivider;
CompleteDemoReadSet readSet;
2021-06-08 13:35:49 +02:00
};
#endif /* MISSION_DEMO_FSFWPERIODICTASK_H_ */