31 #include "../Units.hpp"
32 #include "DeviceBase.hpp"
44 typedef std::shared_ptr<Gpio> Shared;
52 Gpio(
const std::string &address);
74 virtual std::future<units::io_port_t>
getIoState()
const = 0;
virtual std::future< void > setIoState(const units::io_port_t &state) const =0
Set state of this IO.
DeviceType type() const override
Get device type.
Gpio(const std::string &address)
Construct a new GPIO Device at given location on given platform.
virtual std::future< units::io_port_t > getIoState() const =0
Get current state of this GPIO.
DeviceType
List of possible device types supported.
main motion-lib namespace