|
Lely core libraries 1.9.2
|
A mutator providing read/write access to a CANopen sub-object in a local object dictionary. More...
#include <master.hpp>
Public Member Functions | |
| template<class T > | |
| SubObject & | operator= (T &&value) |
| Sets the value of the sub-object. | |
| template<class T > | |
| operator T () const | |
| Returns the value of the sub-object by submitting an SDO upload request to the local object dictionary. | |
| template<class T > | |
| T | Read () const |
| Reads the value of the sub-object by submitting an SDO upload request to the local object dictionary. | |
| template<class T > | |
| T | Read (::std::error_code &ec) const |
| Reads the value of the sub-object by submitting an SDO upload request to the local object dictionary. | |
| template<class T > | |
| void | Write (T &&value) |
| Writes a value to the sub-object by submitting an SDO download request to the local object dictionary. | |
| template<class T > | |
| void | Write (T &&value, ::std::error_code &ec) |
| Writes a value to the sub-object by submitting an SDO download request to the local object dictionary. | |
| void | Write (const void *p, ::std::size_t n) |
| Writes an OCTET_STRING or DOMAIN value to the sub-object by submitting an SDO download request to the local object dictionary. | |
| void | Write (const void *p, ::std::size_t n, ::std::error_code &ec) |
| Writes an OCTET_STRING or DOMAIN value to the sub-object by submitting an SDO download request to the local object dictionary. | |
A mutator providing read/write access to a CANopen sub-object in a local object dictionary.
Definition at line 55 of file master.hpp.
|
inline |
Sets the value of the sub-object.
| value | the value to be written. |
| lely::canopen::SdoError | if the sub-object does not exist or the type does not match. |
Definition at line 77 of file master.hpp.
|
inline |
Returns the value of the sub-object by submitting an SDO upload request to the local object dictionary.
| lely::canopen::SdoError | on error. |
Definition at line 91 of file master.hpp.
|
inline |
Reads the value of the sub-object by submitting an SDO upload request to the local object dictionary.
| lely::canopen::SdoError | on error. |
Definition at line 107 of file master.hpp.
|
inline |
Reads the value of the sub-object by submitting an SDO upload request to the local object dictionary.
| ec | on error, the SDO abort code is stored in ec. |
Definition at line 124 of file master.hpp.
|
inline |
Writes a value to the sub-object by submitting an SDO download request to the local object dictionary.
| value | the value to be written. |
| lely::canopen::SdoError | on error. |
Definition at line 140 of file master.hpp.
|
inline |
Writes a value to the sub-object by submitting an SDO download request to the local object dictionary.
| value | the value to be written. |
| ec | on error, the SDO abort code is stored in ec. |
Definition at line 159 of file master.hpp.
|
inline |
Writes an OCTET_STRING or DOMAIN value to the sub-object by submitting an SDO download request to the local object dictionary.
| p | a pointer to the bytes to be written. |
| n | the number of bytes to write. |
| lely::canopen::SdoError | on error. |
Definition at line 176 of file master.hpp.
|
inline |
Writes an OCTET_STRING or DOMAIN value to the sub-object by submitting an SDO download request to the local object dictionary.
| p | a pointer to the bytes to be written. |
| n | the number of bytes to write. |
| ec | on error, the SDO abort code is stored in ec. |
Definition at line 192 of file master.hpp.