|
std::shared_ptr< MockPlatform > | shared_from_this () |
|
std::shared_ptr< const MockPlatform > | shared_from_this () const |
|
DeviceTypeList | getSupportedDevices () const override |
|
DeviceList | generateDevices (const DeviceTypeList &deviceType) override |
|
size_t | getPlatformId () const |
|
void | setMotorPosition (const std::string &motor, units::Value::value_type destPosition) |
|
units::Value::value_type | getMotorPosition (const std::string &motor) |
|
units::Value::value_type | getLvdtAngle (const std::string &lvdt) |
|
void | setLvdtAngle (const std::string &lvdt, units::Value::value_type value) |
|
void | setGpioState (const std::string &gpio, const units::io_port_t &state) |
|
units::io_port_t | getGpioState (const std::string &gpio) |
|
virtual void | stop () |
|
virtual void | setNotificationWorker (const NotificationWorker::Shared &worker) |
|
void | notify (const DeviceId &id) |
|
void | notify (std::set< DeviceId > &&ids) |
|
|
static PlatformBase::Shared | create (const ccut::yml::NodeRef &config) |
| Create new instance of MockPlatform and return shared_ptr owning it.
|
|
static MotorLocation | motorFromStr (const std::string &str) |
|
|
static const std::string | s_loggerCat {"smc:mock"} |
|
|
| MockPlatform (const ccut::yml::NodeRef &node) |
|
|
size_t | m_platformId |
|
std::mutex | m_lock |
|
std::map< std::string, MotorLocation > | m_motors |
|
std::map< MotorLocation, units::Value::value_type > | m_motorPositions |
|
std::map< std::string, uint8_t > | m_lvdts |
|
std::map< uint8_t, units::Value::value_type > | m_lvdtPositions |
|
std::map< std::string, uint8_t > | m_gpios |
|
std::map< uint8_t, units::io_port_t > | m_gpioStates |
|
std::weak_ptr< NotificationWorker > | m_notificationWorker |
|
Definition at line 50 of file MockPlatform.hpp.
◆ MotorLocation
Location of motor within given platform instance (e.g.
an axis in Grbl)
Definition at line 81 of file MockPlatform.hpp.
The documentation for this class was generated from the following files:
- /builds/mro/controls/sambuca/sambuca-motion-lib/src/platform/specialized/MockPlatform/MockPlatform.hpp
- /builds/mro/controls/sambuca/sambuca-motion-lib/src/platform/specialized/MockPlatform/MockPlatform.cpp