Lely core libraries
2.2.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. More... | |
template<class T > | |
operator T () const | |
Returns the value of the sub-object by submitting an SDO upload request to the local object dictionary. More... | |
template<class T > | |
T | Read () const |
Reads the value of the sub-object by submitting an SDO upload request to the local object dictionary. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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 95 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 112 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 130 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 148 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 170 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 189 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 204 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 219 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 237 of file master.hpp.