22 #ifndef LELY_COAPP_SDO_ERROR_HPP_ 23 #define LELY_COAPP_SDO_ERROR_HPP_ 28 #include <system_error> 39 TOGGLE = UINT32_C(0x05030000),
43 NO_CS = UINT32_C(0x05040001),
51 NO_MEM = UINT32_C(0x05040005),
59 NO_OBJ = UINT32_C(0x06020000),
61 NO_PDO = UINT32_C(0x06040041),
68 PARAM = UINT32_C(0x06040043),
70 COMPAT = UINT32_C(0x06040047),
80 NO_SUB = UINT32_C(0x06090011),
90 NO_SDO = UINT32_C(0x060a0023),
92 ERROR = UINT32_C(0x08000000),
94 DATA = UINT32_C(0x08000020),
110 NO_OD = UINT32_C(0x08000023),
112 NO_VAL = UINT32_C(0x08000024)
119 ::std::error_code ec);
121 ::std::error_code ec, const ::std::string& what_arg);
123 ::std::error_code ec,
const char* what_arg);
125 const char* what_arg);
136 id() const noexcept {
153 const ::std::error_code&
163 ::std::error_code ec_;
167 const ::std::error_category&
SdoCategory() noexcept;
186 #endif // LELY_COAPP_SDO_ERROR_HPP_ General parameter incompatibility reason.
Data cannot be transferred or stored to the application because of the present device state...
This is the public header file of the C++ CANopen application library.
Maximum value is less than minimum value (download only).
Invalid value for parameter (download only).
Invalid block size (block mode only).
Attempt to write a read only object.
Access failed due to a hardware error.
Resource not available: SDO connection.
Unsupported access to an object.
uint16_t idx() const noexcept
Returns the object index.
Data cannot be transferred or stored to the application because of local control. ...
uint8_t netid() const noexcept
Returns the network-ID.
The mask to get/set the toggle bit from an NMT state.
Sub-index does not exist.
No data available. (NO_DATA is a macro defined in <netdb.h>)
Data cannot be transferred or stored to the application.
SdoErrc
The SDO abort codes.
Data type does not match, length of service parameter too high.
Data type does not match, length of service parameter does not match.
CRC error (block mode only).
Invalid sequence number (block mode only).
Object dictionary dynamic generation fails or no object dictionary is present (e.g.
Object cannot be mapped to the PDO.
uint8_t id() const noexcept
Returns the node-ID.
Object does not exist in the object dictionary.
Client/server command specifier not valid or unknown.
uint8_t subidx() const noexcept
Returns the object sub-index.
Value of parameter written too low (download only).
::std::error_code make_error_code(SdoErrc e) noexcept
Creates an error code corresponding to an SDO abort code.
Data type does not match, length of service parameter too low.
The number and length of the objects to be mapped would exceed the PDO length.
Global namespace for the Lely Industries N.V. libraries.
General internal incompatibility in the device.
const ::std::error_code & code() const noexcept
Returns the stored error code.
const ::std::error_category & SdoCategory() noexcept
Returns a reference to the error category object for SDO abort codes.
::std::error_condition make_error_condition(SdoErrc e) noexcept
Creates an error condition corresponding to an SDO abort code.
Attempt to read a write only object.
The type of exception thrown when an SDO abort code is received.
Value of parameter written too high (download only).