Motion Master
|
#include <virtual_parameter.h>
Public Types | |
enum class | Type { kNotDefined = 0 , kIghOdEntry , kSoemOdEntry , kMock } |
enum class | ValueType { kUnspecified = 0 , kBoolean , kInteger8 , kInteger16 , kInteger32 , kUnsignedInteger8 , kUnsignedInteger16 , kUnsignedInteger32 , kFloat , kString , kOctetString , kUnicodeString , kEnum , kOther } |
enum class | PdoMapping { kNotPdoMapped , kRxPdoMapped , kTxPdoMapped } |
Public Member Functions | |
virtual | ~VirtualParameter ()=default |
virtual Type | get_parameter_type () |
Get the type of the parameter. More... | |
virtual uint16_t | get_index ()=0 |
Get the index of the parameter. More... | |
virtual uint8_t | get_subindex ()=0 |
Get the subindex of the parameter. More... | |
virtual bool | is_pdo_mapped ()=0 |
Check if the parameter is PDO mapped. More... | |
virtual uint64_t | get_raw_value ()=0 |
Get the raw (64-bit unsigned integer) value of the OD entry. More... | |
virtual uint64_t | get_raw_value (bool force_refresh)=0 |
Get the raw (64-bit unsigned integer) value of the OD entry. More... | |
virtual int32_t | get_int_value ()=0 |
Get the integer value of the parameter. More... | |
virtual int32_t | get_int_value (bool force_refresh)=0 |
Get the integer value of the parameter. More... | |
virtual float | get_float_value ()=0 |
Get the float value of the parameter. More... | |
virtual float | get_float_value (bool force_refresh)=0 |
Get the float value of the parameter. More... | |
virtual std::string | get_string_value ()=0 |
Get the string value of the parameter. More... | |
virtual std::string | get_string_value (bool force_refresh)=0 |
Get the string value of the parameter. More... | |
virtual bool | get_value_status ()=0 |
Check the current status of the parameter value. More... | |
virtual int32_t | set_raw_value (uint64_t value)=0 |
Set a raw (64-bit unsigned integer) value. More... | |
virtual int32_t | set_value (int32_t value)=0 |
Set an integer value. More... | |
virtual int32_t | set_value (float value)=0 |
Set a float value. More... | |
virtual int32_t | set_value (const std::string &value)=0 |
Set a string value. More... | |
virtual ValueType | get_value_type ()=0 |
Get the parameter value type. More... | |
virtual std::string | get_name ()=0 |
Get the name of the parameter. More... | |
virtual std::string | get_parent_name ()=0 |
Get the parameter parent name. More... | |
virtual bool | is_read () |
Check if the parameter can be read. More... | |
virtual bool | is_write () |
Check if the parameter can be written into. More... | |
virtual std::string | get_unit () |
Get the defined unit of the parameter value. More... | |
virtual int32_t | get_min () |
Get the minimum value the parameter should hold. More... | |
virtual int32_t | get_max () |
Get the maximum value the parameter should hold. More... | |
virtual bool | is_value_fresh ()=0 |
Check if the value is fresh. More... | |
|
strong |
|
strong |
|
strong |
|
virtualdefault |
|
pure virtual |
Get the float value of the parameter.
Implemented in MockParameter, and SoemOdEntry.
|
pure virtual |
Get the float value of the parameter.
force_refresh | force the value refresh |
Implemented in MockParameter, and SoemOdEntry.
|
pure virtual |
Get the index of the parameter.
Implemented in MockParameter, and SoemOdEntry.
|
pure virtual |
Get the integer value of the parameter.
Implemented in MockParameter, and SoemOdEntry.
|
pure virtual |
Get the integer value of the parameter.
force_refresh | force the value refresh |
Implemented in MockParameter, and SoemOdEntry.
|
inlinevirtual |
Get the maximum value the parameter should hold.
IMPORTANT: Not being used currently
Reimplemented in MockParameter, and SoemOdEntry.
|
inlinevirtual |
Get the minimum value the parameter should hold.
IMPORTANT: Not being used currently
Reimplemented in MockParameter, and SoemOdEntry.
|
pure virtual |
Get the name of the parameter.
Implemented in MockParameter, and SoemOdEntry.
|
inlinevirtual |
Get the type of the parameter.
Reimplemented in MockParameter, and SoemOdEntry.
|
pure virtual |
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)
Implemented in MockParameter, and SoemOdEntry.
|
pure virtual |
Get the raw (64-bit unsigned integer) value of the OD entry.
Implemented in MockParameter, and SoemOdEntry.
|
pure virtual |
Get the raw (64-bit unsigned integer) value of the OD entry.
force_refresh | force the value refresh |
Implemented in MockParameter, and SoemOdEntry.
|
pure virtual |
Get the string value of the parameter.
force_refresh | force the value refresh |
Implemented in MockParameter, and SoemOdEntry.
|
pure virtual |
Get the string value of the parameter.
force_refresh | force the value refresh |
Implemented in MockParameter, and SoemOdEntry.
|
pure virtual |
Get the subindex of the parameter.
Implemented in MockParameter, and SoemOdEntry.
|
inlinevirtual |
Get the defined unit of the parameter value.
Reimplemented in MockParameter, and SoemOdEntry.
|
pure virtual |
Check the current status of the parameter value.
For example, the value of the parameter can fail to refresh.
Implemented in MockParameter, and SoemOdEntry.
|
pure virtual |
|
pure virtual |
Check if the parameter is PDO mapped.
IMPORTANT: Not available for all types of parameters
Implemented in MockParameter, and SoemOdEntry.
|
inlinevirtual |
Check if the parameter can be read.
Reimplemented in MockParameter, and SoemOdEntry.
|
pure virtual |
Check if the value is fresh.
Implemented in MockParameter, and SoemOdEntry.
|
inlinevirtual |
Check if the parameter can be written into.
Reimplemented in MockParameter, and SoemOdEntry.
|
pure virtual |
Set a raw (64-bit unsigned integer) value.
value | value to set |
Implemented in MockParameter, and SoemOdEntry.
|
pure virtual |
Set a string value.
value | value to set |
Implemented in MockParameter, and SoemOdEntry.
|
pure virtual |
Set a float value.
value | value to set |
Implemented in MockParameter, and SoemOdEntry.
|
pure virtual |
Set an integer value.
value | value to set |
Implemented in MockParameter, and SoemOdEntry.