MotionLib
1.0.0
SamBuCa motion library
|
Public Types | |
typedef std::shared_ptr< Trigger > | Shared |
![]() | |
typedef smc::DeviceType | DeviceType |
typedef std::shared_ptr< DeviceBase > | Shared |
Public Member Functions | |
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... | |
virtual std::future< void > | arm () const =0 |
arm the trigger More... | |
virtual std::future< void > | disarm () const =0 |
disarm the trigger More... | |
virtual std::future< bool > | isArmed () const =0 |
check if trigger is armed More... | |
virtual std::future< void > | trig () const =0 |
soft-trigger the trigger | |
![]() | |
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 | |
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... | |
![]() | |
const std::string | m_uid |
Definition at line 40 of file Trigger.hpp.
smc::Trigger::Trigger | ( | const std::string & | address | ) |
Construct a new Trigger Device at given location on given platform.
address | unique address of the device |
platform | Platform on which this device is located |
config | optional config platform |
Definition at line 33 of file Trigger.cpp.
|
pure virtual |
arm the trigger
Implemented in smc::internal::MGrblTrigger, smc::internal::MGrblMainTrigger, and smc::internal::GrblTrigger.
|
pure virtual |
disarm the trigger
Implemented in smc::internal::MGrblTrigger, smc::internal::MGrblMainTrigger, and smc::internal::GrblTrigger.
|
pure virtual |
check if trigger is armed
Implemented in smc::internal::MGrblTrigger, smc::internal::MGrblMainTrigger, and smc::internal::GrblTrigger.
|
overridevirtual |
Get device type.
Implements smc::DeviceBase.
Definition at line 35 of file Trigger.cpp.