Go to the documentation of this file.
34 class RapidXmlReaderNode;
55 static constexpr std::uint8_t MAX_NAME_LENGTH = 128;
119 bool setName(
const std::string& name);
139 std::string
toString(
const std::string& linePrefix =
"")
const;
154 char m_name[MAX_NAME_LENGTH] =
"unknown (unknown)";
155 std::uint16_t m_start_pos_device_name{7};
Data structure holding the information necessary to create a SlaveIdentifier.
SlaveIdentifier()=default
std::uint32_t productCode
The product code of the slave.
bool setParentDeviceName(const std::string &parentDeviceName)
Sets the name of the parent device of a slave identifier.
The SlaveIdentifier class is a POD-type representing a unique set of values identifying an EtherCAT s...
bool setName(const std::string &name)
Sets the slave name of a SlaveIdentifier and returns whether the new name fits together with the pare...
friend std::ostream & operator<<(std::ostream &stream, const SlaveIdentifier &rhs)
std::uint32_t serialNumber
The serial number of a slave with a certain productCode.
std::uint32_t vendorID
The unique id of the vendor of the slave hardware.
std::string getName() const
Returns the combination of slave name and name of the parent device of a slave identifier as a string...
std::uint32_t revisionNumber
The revision number of the slave hard- or firmware (is not used for identifying a slave on the bus)
std::string toMinimalString(const std::string &linePrefix="") const
Returns a minimal string representation of a SlaveIdentifier.
std::int16_t slaveIndex
The index of the slave on the bus.
const char * getNameAsCStr() const
Returns the combination of slave name and name of the parent device of a slave identifier as char arr...
std::string toString(const std::string &linePrefix="") const
Returns a full string representation of a SlaveIdentifier.
This file offers overloads of toIce() and fromIce() functions for STL container types.