void print() const
Prints the response to command line.
uint8_t get_length() const
Returns the number of data bytes.
uint8_t failed() const
Check if the transfer failed.
This struct contains the response of a SDO request. Note that there are two types of response - segme...
uint16_t index
Dictionary index.
uint16_t get_subindex() const
Returns the subindex (only for expedited transfer).
std::string get_error() const
Returns a human-readable representation of the error (only if failed()==true)
uint8_t command
SDO command specifier.
uint8_t subindex
Subindex.
uint16_t get_index() const
Returns the dictionary index (only for expedited transfer).
uint32_t get_data() const
Returns the data as a single 4-byte value (only for expedited transfer).
uint8_t data[7]
Data bytes.