24 #ifndef MOCKGPIO_HPP__
25 #define MOCKGPIO_HPP__
29 #include "device/Gpio.hpp"
39 MockGpio(
const std::string &
uid,
const std::shared_ptr<MockPlatform> &mock);
43 std::future<units::io_port_t>
getIoState()
const override;
46 std::weak_ptr<MockPlatform> m_mock;
DeviceId uid() const
Get the address of device.
std::future< void > setIoState(const units::io_port_t &state) const override
Set state of this IO.
std::future< units::io_port_t > getIoState() const override
Get current state of this GPIO.
main motion-lib namespace