MotionLib  1.0.0
SamBuCa motion library
Public Types | Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
smc::internal::MGrblPlatformDevice Class Reference
Inheritance diagram for smc::internal::MGrblPlatformDevice:
Inheritance graph
[legend]
Collaboration diagram for smc::internal::MGrblPlatformDevice:
Collaboration graph
[legend]

Public Types

typedef std::shared_ptr< MGrblPlatformDeviceShared
 
- Public Types inherited from smc::internal::GrblPlatformDevice
typedef std::shared_ptr< GrblPlatformDeviceShared
 
- Public Types inherited from smc::PlatformDevice
typedef std::shared_ptr< PlatformDeviceShared
 
- Public Types inherited from smc::DeviceBase
typedef smc::DeviceType DeviceType
 
typedef std::shared_ptr< DeviceBaseShared
 

Public Member Functions

 MGrblPlatformDevice (const std::string &uid, const std::shared_ptr< MGrblPlatform > &mgrbl, const std::shared_ptr< GrblPlatform > &grbl)
 
std::future< std::set< std::string > > listConfig () const override
 list device configuration options
 
std::future< std::string > getConfig (const std::string &name) const override
 get device configuration value More...
 
std::future< void > setConfig (const std::string &name, const std::string &value) const override
 set device configuration value More...
 
- Public Member Functions inherited from smc::internal::GrblPlatformDevice
 GrblPlatformDevice (const std::string &uid, const std::shared_ptr< GrblPlatform > &grbl)
 
- Public Member Functions inherited from smc::PlatformDevice
 PlatformDevice (const std::string &uid)
 
DeviceType type () const override
 
- Public Member Functions inherited from smc::DeviceBase
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
 

Static Public Attributes

static const std::set< std::string > s_ctrlSettings
 

Protected Attributes

std::weak_ptr< MGrblPlatformm_mgrbl
 
- Protected Attributes inherited from smc::internal::GrblPlatformDevice
std::weak_ptr< GrblPlatformm_grbl
 
- Protected Attributes inherited from smc::DeviceBase
const std::string m_uid
 

Additional Inherited Members

- Public Attributes inherited from smc::DeviceBase
ccut::Signal< const DeviceBase::Shared & > updateSignal
 device update signal More...
 
- Protected Member Functions inherited from smc::DeviceBase
 DeviceBase (const std::string &uid)
 Construct a new ABaseDevice, linking pointer to platform object. More...
 

Detailed Description

Definition at line 38 of file MGrblPlatformDevice.hpp.

Member Function Documentation

◆ getConfig()

std::future< std::string > MGrblPlatformDevice::getConfig ( const std::string &  name) const
overridevirtual

get device configuration value

Parameters
namevalue to retrieve
Returns
the current value (yml encoded)

Reimplemented from smc::internal::GrblPlatformDevice.

Definition at line 74 of file MGrblPlatformDevice.cpp.

◆ setConfig()

std::future< void > MGrblPlatformDevice::setConfig ( const std::string &  name,
const std::string &  value 
) const
overridevirtual

set device configuration value

Parameters
namename of the configuration value to set
valuevalue to set

Reimplemented from smc::internal::GrblPlatformDevice.

Definition at line 115 of file MGrblPlatformDevice.cpp.

Member Data Documentation

◆ s_ctrlSettings

const std::set< std::string > MGrblPlatformDevice::s_ctrlSettings
static
Initial value:
{
"layout", "grblCount", "trigArm"}

Definition at line 54 of file MGrblPlatformDevice.hpp.


The documentation for this class was generated from the following files: