|
| Gpio (const std::string &address) |
| Construct a new GPIO Device at given location on given platform. More...
|
|
DeviceType | type () const override |
| Get device type. More...
|
|
virtual std::future< void > | setIoState (const units::io_port_t &state) const =0 |
| Set state of this IO. More...
|
|
virtual std::future< units::io_port_t > | getIoState () const =0 |
| Get current state of this GPIO. More...
|
|
DeviceId | uid () const |
| Get the address of device. More...
|
|
virtual std::future< std::set< std::string > > | listConfig () const |
| list device configuration options
|
|
virtual std::future< std::string > | getConfig (const std::string &name) const |
| get device configuration value More...
|
|
virtual std::future< void > | setConfig (const std::string &name, const std::string &value) const |
| set device configuration value More...
|
|
virtual bool | canConvert (const units::Value &value, units::unit_t unit) const |
| Check if unit conversion is possible in a manner specific to this device. More...
|
|
virtual bool | convert (units::Value &value, units::unit_t unit) const |
| Convert value in a manner specific to this device. More...
|
|
std::string | toString () const |
| debug and logging operation
|
|
|
ccut::Signal< const DeviceBase::Shared & > | updateSignal |
| device update signal More...
|
|
| DeviceBase (const std::string &uid) |
| Construct a new ABaseDevice, linking pointer to platform object. More...
|
|
const std::string | m_uid |
|
Definition at line 41 of file Gpio.hpp.
◆ Gpio()
smc::Gpio::Gpio |
( |
const std::string & |
address | ) |
|
Construct a new GPIO Device at given location on given platform.
- Parameters
-
platform | Platform on which GPIO is located |
address | Unique address of the GPIO |
Definition at line 31 of file Gpio.cpp.
◆ getIoState()
◆ setIoState()
virtual std::future<void> smc::Gpio::setIoState |
( |
const units::io_port_t & |
state | ) |
const |
|
pure virtual |
◆ type()
The documentation for this class was generated from the following files:
- /builds/mro/controls/sambuca/sambuca-motion-lib/src/device/Gpio.hpp
- /builds/mro/controls/sambuca/sambuca-motion-lib/src/device/Gpio.cpp