Motion Master 6.0.0-alpha.86
Next-generation motion control software
Loading...
Searching...
No Matches
mm::node::ObjectValues Struct Reference

Decoded values of one object's readable sub-entries, as returned by Device::readObject. More...

#include <device.h>

Collaboration diagram for mm::node::ObjectValues:
[legend]

Public Member Functions

template<typename T >
std::expected< T, std::string > get (uint8_t subindex) const
 Returns the value of subindex as T — type-exact, like DeviceParameter::getValue.
 

Public Attributes

uint16_t index = 0
 CoE object index the values belong to.
 
std::map< uint8_t, DeviceParameterValuevalues
 Decoded value per readable subindex.
 

Detailed Description

Decoded values of one object's readable sub-entries, as returned by Device::readObject.

Member Function Documentation

◆ get()

template<typename T >
std::expected< T, std::string > mm::node::ObjectValues::get ( uint8_t  subindex) const
inline

Returns the value of subindex as T — type-exact, like DeviceParameter::getValue.

Returns
The value, or an error string if the subindex is absent or holds a different type.

Member Data Documentation

◆ index

uint16_t mm::node::ObjectValues::index = 0

CoE object index the values belong to.

◆ values

std::map<uint8_t, DeviceParameterValue> mm::node::ObjectValues::values

Decoded value per readable subindex.


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