eive-obsw/linux/boardtest/LibgpiodTest.h

34 lines
795 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 "TestTask.h"
2021-08-03 15:58:01 +02:00
#include <fsfw_hal/common/gpio/GpioIF.h>
#include <fsfw_hal/common/gpio/GpioCookie.h>
2021-02-14 09:25:40 +01:00
#include <fsfw/objectmanager/SystemObject.h>
/**
* @brief Test for the GPIO read implementation of the LinuxLibgpioIF.
* @author J. Meier
*/
class LibgpiodTest: public TestTask {
2021-02-14 09:25:40 +01:00
public:
2021-02-22 12:40:12 +01:00
enum TestCases {
READ = 0,
LOOPBACK = 1
};
TestCases testCase;
LibgpiodTest(object_id_t objectId, object_id_t gpioIfobjectId, GpioCookie* gpioCookie);
virtual ~LibgpiodTest();
2021-02-14 09:25:40 +01:00
protected:
2021-02-22 17:36:44 +01:00
ReturnValue_t performOneShotAction() override;
ReturnValue_t performPeriodicAction() override;
2021-02-14 09:25:40 +01:00
private:
GpioIF* gpioInterface;
};
#endif /* TEST_TESTTASKS_LIBGPIODTEST_H_ */