fsfw/src/fsfw_tests/integration/controller/TestController.h

37 lines
1.3 KiB
C
Raw Normal View History

2021-10-17 23:27:31 +02:00
#ifndef MISSION_CONTROLLER_TESTCONTROLLER_H_
#define MISSION_CONTROLLER_TESTCONTROLLER_H_
#include <fsfw/controller/ExtendedControllerBase.h>
2022-02-02 10:29:30 +01:00
#include "../devices/devicedefinitions/testDeviceDefinitions.h"
2021-10-17 23:27:31 +02:00
2022-02-02 10:29:30 +01:00
class TestController : public ExtendedControllerBase {
public:
2022-09-29 19:21:24 +02:00
TestController(object_id_t objectId, size_t commandQueueDepth = 10);
2022-02-02 10:29:30 +01:00
virtual ~TestController();
2021-10-17 23:27:31 +02:00
2022-02-02 10:29:30 +01:00
protected:
// Extended Controller Base overrides
ReturnValue_t handleCommandMessage(CommandMessage* message) override;
void performControlOperation() override;
2021-10-17 23:27:31 +02:00
2022-02-02 10:29:30 +01:00
// HasLocalDatapoolIF callbacks
virtual void handleChangedDataset(sid_t sid, store_address_t storeId,
bool* clearMessage) override;
virtual void handleChangedPoolVariable(gp_id_t globPoolId, store_address_t storeId,
bool* clearMessage) override;
2021-10-17 23:27:31 +02:00
2022-02-02 10:29:30 +01:00
LocalPoolDataSetBase* getDataSetHandle(sid_t sid) override;
ReturnValue_t initializeLocalDataPool(localpool::DataPool& localDataPoolMap,
LocalDataPoolManager& poolManager) override;
2021-10-17 23:27:31 +02:00
2022-02-02 10:29:30 +01:00
ReturnValue_t checkModeCommand(Mode_t mode, Submode_t submode,
uint32_t* msToReachTheMode) override;
2021-10-17 23:27:31 +02:00
2022-02-02 10:29:30 +01:00
ReturnValue_t initializeAfterTaskCreation() override;
2021-10-17 23:27:31 +02:00
2022-02-02 10:29:30 +01:00
private:
2021-10-17 23:27:31 +02:00
};
#endif /* MISSION_CONTROLLER_TESTCONTROLLER_H_ */