2021-02-14 11:03:53 +01:00
|
|
|
#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
|
|
|
|
*/
|
2021-02-14 11:03:53 +01:00
|
|
|
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;
|
|
|
|
|
2021-02-14 11:03:53 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
2021-02-14 11:03:53 +01:00
|
|
|
#endif /* TEST_TESTTASKS_LIBGPIODTEST_H_ */
|