|
Lely core libraries 2.3.5
|
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> | |
| SubObject & | Write (T &&value) |
| Writes a value to the sub-object by submitting an SDO download request to the local object dictionary. | |
| template<class T> | |
| SubObject & | 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. | |
| SubObject & | 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. | |
| SubObject & | 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. | |
| void | WriteEvent () |
| Checks if the sub-object can be mapped into a PDO and, if so, triggers the transmission of every acyclic or event-driven Transmit-PDO into which the sub-object is mapped. | |
| void | WriteEvent (::std::error_code &ec) noexcept |
| Checks if the sub-object can be mapped into a PDO and, if so, triggers the transmission of every acyclic or event-driven Transmit-PDO into which the sub-object is mapped. | |
A mutator providing read/write access to a CANopen sub-object in a local object dictionary.
Definition at line 59 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 81 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 94 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 111 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 129 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. |
*this.| lely::canopen::SdoError | on error. |
Definition at line 149 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. |
*this.Definition at line 174 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. |
*this.| lely::canopen::SdoError | on error. |
Definition at line 196 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. |
*this.Definition at line 214 of file master.hpp.
|
inline |
Checks if the sub-object can be mapped into a PDO and, if so, triggers the transmission of every acyclic or event-driven Transmit-PDO into which the sub-object is mapped.
| lely::canopen::SdoError | on error. |
Definition at line 230 of file master.hpp.
|
inlinenoexcept |
Checks if the sub-object can be mapped into a PDO and, if so, triggers the transmission of every acyclic or event-driven Transmit-PDO into which the sub-object is mapped.
| ec | on error, the SDO abort code is stored in ec. |
Definition at line 248 of file master.hpp.