Specifies the meaning of the holding registers. More...
#include <modbus_api_spec.h>
Public Member Functions | |
void | getAllDefinedRegisters (std::vector< unsigned short > ®isters) |
unsigned short | getMaxRegisterDefinition () const |
unsigned short | getMinRegisterDefinition () const |
unsigned short | getRegisterDefinition (const std::string &key) const |
bool | hasRegisterDefinition (const std::string &key) const |
ModbusApiSpecTemplated (std::initializer_list< std::pair< std::string, unsigned short > > reg_list) | |
ModbusApiSpecTemplated (T &nh) | |
Construct a new Modbus Api Spec Templated object. More... | |
ModbusApiSpecTemplated (T &nh, const std::string ¶m_name) | |
Construct a new Modbus Api Spec Templated object. More... | |
void | setRegisterDefinition (const std::string &key, unsigned short value) |
std::map< std::string, unsigned short >::size_type | size () const |
Private Attributes | |
std::map< std::string, unsigned short > | register_mapping_ |
Specifies the meaning of the holding registers.
Definition at line 62 of file modbus_api_spec.h.
|
inline |
Definition at line 65 of file modbus_api_spec.h.
|
inline |
Construct a new Modbus Api Spec Templated object.
The parameters are expected to be provided as
with the values beeing of type int.
nh | NodeHandle to read the parameters from |
Definition at line 86 of file modbus_api_spec.h.
|
inline |
Construct a new Modbus Api Spec Templated object.
The parameters are expected to be provided as
with the values beeing of type int.
nh | NodeHandle to read the parameters from |
param_name | the name on the rosparam server to read from |
Definition at line 104 of file modbus_api_spec.h.
|
inline |
Definition at line 176 of file modbus_api_spec.h.
|
inline |
Definition at line 158 of file modbus_api_spec.h.
|
inline |
Definition at line 140 of file modbus_api_spec.h.
|
inline |
Definition at line 129 of file modbus_api_spec.h.
|
inline |
Definition at line 119 of file modbus_api_spec.h.
|
inline |
Definition at line 124 of file modbus_api_spec.h.
|
inline |
Definition at line 185 of file modbus_api_spec.h.
|
private |
Definition at line 191 of file modbus_api_spec.h.