Lely core libraries
2.2.5
|
A mutator providing read/write access to a CANopen sub-object in a local object dictionary. More...
#include <slave.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 a copy of the value of the sub-object. More... | |
const ::std::type_info & | Type () const |
Returns the type of the sub-object. More... | |
const ::std::type_info & | Type (::std::error_code &ec) const noexcept |
Returns the type of the sub-object. More... | |
template<class T > | |
T | Get () const |
Reads the value of the sub-object. More... | |
template<class T > | |
T | Get (::std::error_code &ec) const noexcept |
Reads the value of the sub-object. More... | |
template<class T > | |
void | Set (T &&value) |
Writes a value to the sub-object. More... | |
template<class T > | |
void | Set (T &&value, ::std::error_code &ec) noexcept |
Writes a value to the sub-object. More... | |
void | Set (const void *p, ::std::size_t n) |
Writes an OCTET_STRING or DOMAIN value to the sub-object. More... | |
void | Set (const void *p, ::std::size_t n, ::std::error_code &ec) noexcept |
Writes an OCTET_STRING or DOMAIN value to the sub-object. More... | |
void | SetEvent () |
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 | SetEvent (::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.
|
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. |
|
inline |
Returns a copy of the value of the sub-object.
lely::canopen::SdoError | if the sub-object does not exist or the type does not match. |
|
inline |
Returns the type of the sub-object.
std::type_info
object representing the type, or typeid(void)
if unknown.lely::canopen::SdoError | if the sub-object does not exist. |
|
inlinenoexcept |
Returns the type of the sub-object.
ec | if the sub-object does not exist, the SDO abort code is stored in ec. |
std::type_info
object representing the type, or typeid(void)
if unknown.
|
inline |
Reads the value of the sub-object.
lely::canopen::SdoError | if the sub-object does not exist or the type does not match. |
|
inlinenoexcept |
Reads the value of the sub-object.
ec | if the sub-object does not exist or the type does not match, the SDO abort code is stored in ec. |
|
inline |
Writes a value to 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. |
|
inlinenoexcept |
Writes a value to the sub-object.
value | the value to be written. |
ec | if the sub-object does not exist or the type does not match, the SDO abort code is stored in ec. |
|
inline |
Writes an OCTET_STRING or DOMAIN value to the sub-object.
p | a pointer to the bytes to be written. |
n | the number of bytes to write. |
lely::canopen::SdoError | if the sub-object does not exist or the type does not match. |
|
inlinenoexcept |
Writes an OCTET_STRING or DOMAIN value to the sub-object.
p | a pointer to the bytes to be written. |
n | the number of bytes to write. |
ec | if the sub-object does not exist or the type does not match, the SDO abort code is stored in ac. |
|
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. |
|
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. |