MotionLib
1.0.0
SamBuCa motion library
|
Public Types | |
typedef std::shared_ptr< MGrblTrigger > | Shared |
![]() | |
typedef std::shared_ptr< GrblTrigger > | Shared |
![]() | |
typedef std::shared_ptr< Trigger > | Shared |
![]() | |
typedef smc::DeviceType | DeviceType |
typedef std::shared_ptr< DeviceBase > | Shared |
Public Member Functions | |
MGrblTrigger (const std::string &uid, const std::shared_ptr< MGrblPlatform > &mgrbl, const std::shared_ptr< GrblPlatform > &grbl) | |
std::future< void > | arm () const override |
arm the trigger More... | |
std::future< void > | disarm () const override |
disarm the trigger More... | |
std::future< bool > | isArmed () const override |
check if trigger is armed More... | |
std::future< void > | trig () const override |
soft-trigger the trigger | |
![]() | |
GrblTrigger (const std::string &uid, const std::shared_ptr< GrblPlatform > &grbl) | |
![]() | |
Trigger (const std::string &address) | |
Construct a new Trigger Device at given location on given platform. More... | |
DeviceType | type () const override |
Get device type. 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 | |
Protected Attributes | |
std::weak_ptr< MGrblPlatform > | m_mgrbl |
![]() | |
std::weak_ptr< GrblPlatform > | m_grbl |
![]() | |
const std::string | m_uid |
Friends | |
class | MGrblPlatform |
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 35 of file MGrblTrigger.hpp.
|
overridevirtual |
arm the trigger
Reimplemented from smc::internal::GrblTrigger.
Definition at line 42 of file MGrblTrigger.cpp.
|
overridevirtual |
disarm the trigger
Reimplemented from smc::internal::GrblTrigger.
Definition at line 59 of file MGrblTrigger.cpp.
|
overridevirtual |
check if trigger is armed
Reimplemented from smc::internal::GrblTrigger.
Definition at line 76 of file MGrblTrigger.cpp.