3#include <nlohmann/json.hpp>
47 uint16_t absolute_slave_position_;
58 std::string parent_name_;
61 int32_t min_value_ = INT32_MIN;
62 int32_t max_value_ = INT32_MAX;
64 std::atomic<uint64_t> pdo_value_ = 0;
65 std::atomic_bool value_status_ =
false;
66 std::atomic_bool value_initially_refreshed_ =
false;
70 int32_t refresh_value();
71 int32_t set_value_sdo(uint64_t
value);
72 int32_t set_value_sdo(
float value);
73 int32_t set_value_sdo(
const std::string&
value);
Definition soem_od_entry.h:7
friend class ParameterValueRefresher
Definition soem_od_entry.h:13
friend class Soem
Definition soem_od_entry.h:9
bool is_pdo_mapped() override
Check if the parameter is PDO mapped.
Definition soem_od_entry.cc:19
bool set_pdo_mapping(PdoMapping pdo_mapping)
Definition soem_od_entry.cc:23
int32_t get_int_value() override
Get the integer value of the parameter.
Definition soem_od_entry.cc:43
friend void to_json(nlohmann::json &j, const SoemOdEntry &e)
Definition soem_od_entry.cc:550
std::string get_name() override
Get the name of the parameter.
Definition soem_od_entry.cc:341
int32_t set_value(int32_t value) override
Set an integer value.
Definition soem_od_entry.cc:147
friend class Soes
Definition soem_od_entry.h:10
std::string get_parent_name() override
Get the parameter parent name.
Definition soem_od_entry.cc:343
std::string get_unit() override
Get the defined unit of the parameter value.
Definition soem_od_entry.cc:363
friend class SoemSlave
Definition soem_od_entry.h:12
Type get_parameter_type() override
Get the type of the parameter.
Definition soem_od_entry.cc:11
bool is_write() override
Definition soem_od_entry.cc:361
ValueType get_value_type() override
Get the parameter value type.
Definition soem_od_entry.cc:306
float get_float_value() override
Get the float value of the parameter.
Definition soem_od_entry.cc:93
bool get_value_status() override
Check the current status of the parameter value.
Definition soem_od_entry.cc:123
int32_t get_max() override
Get the maximum value the parameter should hold.
Definition soem_od_entry.cc:367
bool is_read() override
Definition soem_od_entry.cc:352
bool is_value_fresh() override
Check if the value is fresh.
Definition soem_od_entry.cc:369
uint8_t get_subindex() override
Get the subindex of the parameter.
Definition soem_od_entry.cc:17
int32_t get_min() override
Get the minimum value the parameter should hold.
Definition soem_od_entry.cc:365
int32_t set_raw_value(uint64_t value) override
Set a raw (64-bit unsigned integer) value.
Definition soem_od_entry.cc:125
uint16_t get_index() override
Get the index of the parameter.
Definition soem_od_entry.cc:15
friend class SoemMaster
Definition soem_od_entry.h:11
std::string get_string_value() override
Get the string value of the parameter.
Definition soem_od_entry.cc:109
uint64_t get_raw_value() override
Get the raw (64-bit unsigned integer) value of the OD entry.
Definition soem_od_entry.cc:28
friend void from_json(const nlohmann::json &j, SoemOdEntry &e)
Definition soem_od_entry.cc:573
Definition virtual_parameter.h:9
PdoMapping
Definition virtual_parameter.h:36
@ kNotPdoMapped
Definition virtual_parameter.h:36
Type
Definition virtual_parameter.h:11
ValueType
Definition virtual_parameter.h:19
uint8_t * value
Definition co_dictionary.h:9