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

21 lines
641 B
C
Raw Normal View History

2021-11-19 14:12:12 +01:00
#ifndef EXAMPLE_COMMON_EXAMPLE_TEST_FSFWTESTTASK_H_
#define EXAMPLE_COMMON_EXAMPLE_TEST_FSFWTESTTASK_H_
#include "events/subsystemIdRanges.h"
2022-05-05 20:55:28 +02:00
#include "fsfw/events/Event.h"
#include "fsfw_tests/integration/task/TestTask.h"
2021-11-19 14:12:12 +01:00
2022-05-05 20:55:28 +02:00
class FsfwTestTask : public TestTask {
2022-08-08 12:32:06 +02:00
public:
2022-05-05 20:55:28 +02:00
FsfwTestTask(object_id_t objectId, bool periodicEvent);
2021-11-19 14:12:12 +01:00
2022-05-05 20:55:28 +02:00
ReturnValue_t performPeriodicAction() override;
2021-11-19 14:12:12 +01:00
2022-08-08 12:32:06 +02:00
private:
2022-05-05 20:55:28 +02:00
bool periodicEvent = false;
static constexpr uint8_t subsystemId = SUBSYSTEM_ID::TEST_TASK_ID;
2022-08-08 12:32:06 +02:00
static constexpr Event TEST_EVENT = event::makeEvent(subsystemId, 0, severity::INFO);
2021-11-19 14:12:12 +01:00
};
#endif /* EXAMPLE_COMMON_EXAMPLE_TEST_FSFWTESTTASK_H_ */