eive-obsw/linux/boardtest/LibgpiodTest.h

32 lines
778 B
C
Raw Normal View History

#ifndef TEST_TESTTASKS_LIBGPIODTEST_H_
#define TEST_TESTTASKS_LIBGPIODTEST_H_
2021-02-14 09:25:40 +01:00
#include <fsfw/objectmanager/SystemObject.h>
2022-01-17 15:58:27 +01:00
#include <fsfw_hal/common/gpio/GpioCookie.h>
#include <fsfw_hal/common/gpio/GpioIF.h>
2022-11-28 11:35:28 +01:00
#include "test/TestTask.h"
2021-02-14 09:25:40 +01:00
/**
* @brief Test for the GPIO read implementation of the LinuxLibgpioIF.
* @author J. Meier
*/
2022-01-17 15:58:27 +01:00
class LibgpiodTest : public TestTask {
public:
enum TestCases { READ = 0, LOOPBACK = 1, BLINK };
2021-02-22 12:40:12 +01:00
2022-01-17 15:58:27 +01:00
TestCases testCase;
2021-02-22 12:40:12 +01:00
2022-01-17 15:58:27 +01:00
LibgpiodTest(object_id_t objectId, object_id_t gpioIfobjectId, GpioCookie* gpioCookie);
virtual ~LibgpiodTest();
2021-02-14 09:25:40 +01:00
2022-01-17 15:58:27 +01:00
protected:
ReturnValue_t performOneShotAction() override;
ReturnValue_t performPeriodicAction() override;
2021-02-14 09:25:40 +01:00
2022-01-17 15:58:27 +01:00
private:
GpioIF* gpioInterface;
2021-02-14 09:25:40 +01:00
};
#endif /* TEST_TESTTASKS_LIBGPIODTEST_H_ */