|
Motion Master
|
#include <soem_od_entry.h>


Public Member Functions | |
| Type | get_parameter_type () override |
| Get the type of the parameter. | |
| uint16_t | get_index () override |
| Get the index of the parameter. | |
| uint8_t | get_subindex () override |
| Get the subindex of the parameter. | |
| bool | is_pdo_mapped () override |
| Check if the parameter is PDO mapped. | |
| bool | set_pdo_mapping (PdoMapping pdo_mapping) |
| uint64_t | get_raw_value () override |
| Get the raw (64-bit unsigned integer) value of the OD entry. | |
| uint64_t | get_raw_value (bool force_refresh) override |
| Get the raw (64-bit unsigned integer) value of the OD entry. | |
| int32_t | get_int_value () override |
| Get the integer value of the parameter. | |
| int32_t | get_int_value (bool force_refresh) override |
| Get the integer value of the parameter. | |
| float | get_float_value () override |
| Get the float value of the parameter. | |
| float | get_float_value (bool force_refresh) override |
| Get the float value of the parameter. | |
| std::string | get_string_value () override |
| Get the string value of the parameter. | |
| std::string | get_string_value (bool force_refresh) override |
| Get the string value of the parameter. | |
| bool | get_value_status () override |
| Check the current status of the parameter value. | |
| int32_t | set_raw_value (uint64_t value) override |
| Set a raw (64-bit unsigned integer) value. | |
| int32_t | set_value (int32_t value) override |
| Set an integer value. | |
| int32_t | set_value (float value) override |
| Set a float value. | |
| int32_t | set_value (const std::string &value) override |
| Set a string value. | |
| ValueType | get_value_type () override |
| Get the parameter value type. | |
| std::string | get_name () override |
| Get the name of the parameter. | |
| std::string | get_parent_name () override |
| Get the parameter parent name. | |
| bool | is_read () override |
| bool | is_write () override |
| std::string | get_unit () override |
| Get the defined unit of the parameter value. | |
| int32_t | get_min () override |
| Get the minimum value the parameter should hold. | |
| int32_t | get_max () override |
| Get the maximum value the parameter should hold. | |
| bool | is_value_fresh () override |
| Check if the value is fresh. | |
| bool | has_value () override |
| Check if the parameter holds a value that was read at least once. | |
| bool | is_read_attempted () override |
| Check if a read of the value has finished, successfully or not. | |
| std::string | get_last_error () override |
| Get why the last read or write of the value failed. | |
| Public Member Functions inherited from VirtualParameter | |
| virtual | ~VirtualParameter ()=default |
Friends | |
| class | Soem |
| class | Soes |
| class | SoemMaster |
| class | SoemSlave |
| class | ParameterValueRefresher |
| void | to_json (nlohmann::json &j, const SoemOdEntry &e) |
| void | from_json (const nlohmann::json &j, SoemOdEntry &e) |
Additional Inherited Members | |
| Public Types inherited from VirtualParameter | |
| enum class | Type { kNotDefined = 0 , kIghOdEntry , kSoemOdEntry , kMock , kEthernetOdEntry } |
| enum class | ValueType { kUnspecified = 0 , kBoolean , kInteger8 , kInteger16 , kInteger32 , kUnsignedInteger8 , kUnsignedInteger16 , kUnsignedInteger32 , kFloat , kString , kOctetString , kUnicodeString , kEnum , kOther } |
| enum class | PdoMapping { kNotPdoMapped , kRxPdoMapped , kTxPdoMapped } |
|
overridevirtual |
|
overridevirtual |
Get the float value of the parameter.
| force_refresh | force the value refresh |
Implements VirtualParameter.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Get the integer value of the parameter.
| force_refresh | force the value refresh |
Implements VirtualParameter.
|
overridevirtual |
Get why the last read or write of the value failed.
Reimplemented from VirtualParameter.
|
overridevirtual |
Get the maximum value the parameter should hold.
IMPORTANT: Not being used currently
Reimplemented from VirtualParameter.
|
overridevirtual |
Get the minimum value the parameter should hold.
IMPORTANT: Not being used currently
Reimplemented from VirtualParameter.
|
overridevirtual |
|
overridevirtual |
Get the type of the parameter.
Reimplemented from VirtualParameter.
|
overridevirtual |
Get the parameter parent name.
This is the name of the group a (sub-)parameter is a part of (the name of the parent parameter if it is an array or a record)
Implements VirtualParameter.
|
overridevirtual |
Get the raw (64-bit unsigned integer) value of the OD entry.
Implements VirtualParameter.
|
overridevirtual |
Get the raw (64-bit unsigned integer) value of the OD entry.
| force_refresh | force the value refresh |
Implements VirtualParameter.
|
overridevirtual |
Get the string value of the parameter.
| force_refresh | force the value refresh |
Implements VirtualParameter.
|
overridevirtual |
Get the string value of the parameter.
| force_refresh | force the value refresh |
Implements VirtualParameter.
|
overridevirtual |
|
overridevirtual |
Get the defined unit of the parameter value.
Reimplemented from VirtualParameter.
|
overridevirtual |
Check the current status of the parameter value.
For example, the value of the parameter can fail to refresh.
Implements VirtualParameter.
|
overridevirtual |
|
overridevirtual |
Check if the parameter holds a value that was read at least once.
When true, the value getters return without reading the device. When the last read failed, the value is the last one read.
Reimplemented from VirtualParameter.
|
overridevirtual |
Check if the parameter is PDO mapped.
IMPORTANT: Not available for all types of parameters
Implements VirtualParameter.
|
overridevirtual |
Returns true if the Service Data Object (SDO) can be read in any of the following states:
Reimplemented from VirtualParameter.
|
overridevirtual |
Check if a read of the value has finished, successfully or not.
Reimplemented from VirtualParameter.
|
overridevirtual |
Check if the value is fresh.
Implements VirtualParameter.
|
overridevirtual |
Returns true if the Service Data Object (SDO) can be written in any of the following states:
Reimplemented from VirtualParameter.
| bool SoemOdEntry::set_pdo_mapping | ( | PdoMapping | pdo_mapping | ) |
|
overridevirtual |
Set a raw (64-bit unsigned integer) value.
| value | value to set |
Implements VirtualParameter.
|
overridevirtual |
Set a string value.
| value | value to set |
Implements VirtualParameter.
|
overridevirtual |
Set a float value.
| value | value to set |
Implements VirtualParameter.
|
overridevirtual |
Set an integer value.
| value | value to set |
Implements VirtualParameter.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |