MotionLib
1.0.0
SamBuCa motion library
|
Public Types | |
typedef std::shared_ptr< GrblPlatformDevice > | Shared |
![]() | |
typedef std::shared_ptr< PlatformDevice > | Shared |
![]() | |
typedef smc::DeviceType | DeviceType |
typedef std::shared_ptr< DeviceBase > | Shared |
Public Member Functions | |
GrblPlatformDevice (const std::string &uid, const std::shared_ptr< GrblPlatform > &grbl) | |
virtual std::future< std::set< std::string > > | listConfig () const override |
list device configuration options | |
virtual std::future< std::string > | getConfig (const std::string &name) const override |
get device configuration value More... | |
virtual std::future< void > | setConfig (const std::string &name, const std::string &value) const override |
set device configuration value More... | |
![]() | |
PlatformDevice (const std::string &uid) | |
DeviceType | type () const override |
![]() | |
DeviceId | uid () const |
Get the address of device. 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 | |
Protected Attributes | |
std::weak_ptr< GrblPlatform > | m_grbl |
![]() | |
const std::string | m_uid |
Additional Inherited Members | |
![]() | |
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... | |
Definition at line 34 of file GrblPlatformDevice.hpp.
|
overridevirtual |
get device configuration value
name | value to retrieve |
Reimplemented from smc::DeviceBase.
Reimplemented in smc::internal::MGrblPlatformDevice.
Definition at line 63 of file GrblPlatformDevice.cpp.
|
overridevirtual |
set device configuration value
name | name of the configuration value to set |
value | value to set |
Reimplemented from smc::DeviceBase.
Reimplemented in smc::internal::MGrblPlatformDevice.
Definition at line 90 of file GrblPlatformDevice.cpp.