#include <virtual_device.h>
◆ Protocol
Enumerator |
---|
kUnspecified | |
kMock | |
kEcat | |
kSerial | |
◆ Type
Enumerator |
---|
kUnspecified | |
kCia402Drive | |
kDigitalIo | |
◆ ~VirtualDevice()
virtual VirtualDevice::~VirtualDevice |
( |
| ) |
|
|
virtualdefault |
◆ get_all_virtual_parameters()
virtual std::list< VirtualParameter * > VirtualDevice::get_all_virtual_parameters |
( |
| ) |
|
|
pure virtual |
Get all available configuration parameters on the virtual device.
- Returns
- a list of pointers to all available configuration parameters
Implemented in EthercatSlave, MockSlave, and SoemSlave.
◆ get_device_id()
virtual uint16_t VirtualDevice::get_device_id |
( |
| ) |
const |
|
pure virtual |
◆ get_device_type()
virtual Type VirtualDevice::get_device_type |
( |
| ) |
const |
|
inlinevirtual |
◆ get_file_list()
virtual std::variant< MotionMasterError, std::list< std::string > > VirtualDevice::get_file_list |
( |
| ) |
|
|
pure virtual |
◆ get_hardware_id()
virtual uint16_t VirtualDevice::get_hardware_id |
( |
| ) |
const |
|
pure virtual |
◆ get_protocol()
virtual Protocol VirtualDevice::get_protocol |
( |
| ) |
const |
|
inlinevirtual |
◆ get_virtual_parameter()
virtual VirtualParameter * VirtualDevice::get_virtual_parameter |
( |
uint16_t |
index, |
|
|
uint8_t |
subindex |
|
) |
| |
|
pure virtual |
Get a configuration parameter.
- Parameters
-
index | configuration parameter index |
subindex | configuration parameter index |
- Returns
- a pointer to a configuration parameter
Implemented in EthercatSlave, MockSlave, and SoemSlave.
◆ is_operational()
virtual bool VirtualDevice::is_operational |
( |
| ) |
const |
|
pure virtual |
◆ read_file()
virtual std::variant< MotionMasterError, std::vector< uint8_t > > VirtualDevice::read_file |
( |
const std::string & |
file_name | ) |
|
|
pure virtual |
◆ remove_file()
virtual MotionMasterError VirtualDevice::remove_file |
( |
const std::string & |
file_name | ) |
|
|
pure virtual |
Remove the file from the flash memory.
- Parameters
-
file_name | name of the file in the flash memory |
- Returns
- error
Implemented in EthercatSlave, MockSlave, and SoemSlave.
◆ write_file()
virtual MotionMasterError VirtualDevice::write_file |
( |
const std::string & |
file_name, |
|
|
const std::vector< uint8_t > & |
content, |
|
|
std::function< void(uint8_t)> |
progress_callback |
|
) |
| |
|
pure virtual |
Write the file to the flash memory.
- Parameters
-
file_name | the name of the file to be written |
content | the content of the file to be written |
progress_callback | function to call for progress changes |
- Returns
- error
Implemented in EthercatSlave, MockSlave, and SoemSlave.
◆ device_type_map_
const std::map<std::pair<uint32_t, uint32_t>, Type> VirtualDevice::device_type_map_ |
|
inlinestatic |
Initial value:= {
#define SOMANET_INTEGRO_PRODUCT_CODE
Definition: virtual_device.h:14
#define SOMANET_CIRCULO_PRODUCT_CODE
Definition: virtual_device.h:12
#define SYNAPTICON_VENDOR_ID
Definition: virtual_device.h:10
#define SOMANET_CIRCULO_SMM_PRODUCT_CODE
Definition: virtual_device.h:13
#define SOMANET_NODE_PRODUCT_CODE
Definition: virtual_device.h:11
#define DIGITAL_IO_PRODUCT_CODE
Definition: virtual_device.h:15
The documentation for this class was generated from the following file: