Lely core libraries 2.3.4
lely::canopen::BasicSlave::Object Class Reference

A mutator providing read/write access to a CANopen object in a local object dictionary. More...

#include <slave.hpp>

Public Member Functions

SubObject operator[] (uint8_t subidx) noexcept
 Returns a mutator object that provides read/write access to the specified CANopen sub-object in the local object dictionary (or the TPDO-mapped sub-object in the remote object dictionary). More...
 
ConstSubObject operator[] (uint8_t subidx) const noexcept
 Returns an accessor object that provides read-only access to the specified CANopen sub-object in the local object dictionary (or the TPDO-mapped sub-object in the remote object dictionary). More...
 

Detailed Description

A mutator providing read/write access to a CANopen object in a local object dictionary.

Definition at line 445 of file slave.hpp.

Member Function Documentation

◆ operator[]() [1/2]

SubObject lely::canopen::BasicSlave::Object::operator[] ( uint8_t  subidx)
inlinenoexcept

Returns a mutator object that provides read/write access to the specified CANopen sub-object in the local object dictionary (or the TPDO-mapped sub-object in the remote object dictionary).

Note that this function succeeds even if the sub-object does not exist.

Parameters
subidxthe object sub-index.
Returns
a mutator object for a CANopen sub-object in the local object dictionary.

Definition at line 462 of file slave.hpp.

◆ operator[]() [2/2]

ConstSubObject lely::canopen::BasicSlave::Object::operator[] ( uint8_t  subidx) const
inlinenoexcept

Returns an accessor object that provides read-only access to the specified CANopen sub-object in the local object dictionary (or the TPDO-mapped sub-object in the remote object dictionary).

Note that this function succeeds even if the object does not exist.

Parameters
subidxthe object sub-index.
Returns
an accessor object for a CANopen sub-object in the local object dictionary.

Definition at line 478 of file slave.hpp.


The documentation for this class was generated from the following file: