Wrapper class to add semantic to a raw ModbusMsgInStamped.
More...
#include <modbus_msg_wrapper.h>
Wrapper class to add semantic to a raw ModbusMsgInStamped.
Allows easy access to the content behind a raw modbus message.
Definition at line 33 of file modbus_msg_wrapper.h.
◆ ModbusMsgWrapper()
prbt_hardware_support::ModbusMsgWrapper::ModbusMsgWrapper |
( |
const ModbusMsgInStampedConstPtr & |
modbus_msg_raw, |
|
|
const ModbusApiSpec & |
api_spec |
|
) |
| |
|
inline |
◆ ~ModbusMsgWrapper()
virtual prbt_hardware_support::ModbusMsgWrapper::~ModbusMsgWrapper |
( |
| ) |
|
|
virtualdefault |
◆ checkStructuralIntegrity()
void prbt_hardware_support::ModbusMsgWrapper::checkStructuralIntegrity |
( |
| ) |
const |
|
inlinevirtual |
◆ getApiSpec()
const ModbusApiSpec & prbt_hardware_support::ModbusMsgWrapper::getApiSpec |
( |
| ) |
const |
|
inlineprotected |
- Returns
- a reference to the internally stored API specification.
Definition at line 139 of file modbus_msg_wrapper.h.
◆ getRegister()
uint16_t prbt_hardware_support::ModbusMsgWrapper::getRegister |
( |
uint32_t |
reg | ) |
const |
|
inlineprotected |
◆ getTimeStamp()
const ros::Time & prbt_hardware_support::ModbusMsgWrapper::getTimeStamp |
( |
| ) |
const |
|
inline |
◆ getVersion()
unsigned int prbt_hardware_support::ModbusMsgWrapper::getVersion |
( |
| ) |
const |
|
inline |
◆ hasRegister()
bool prbt_hardware_support::ModbusMsgWrapper::hasRegister |
( |
uint32_t |
reg | ) |
const |
|
inlineprotected |
Check if a certain holding register is define in the Modbus message.
- Returns
- true if the message has the register defined, otherwise false.
Definition at line 104 of file modbus_msg_wrapper.h.
◆ hasVersion()
bool prbt_hardware_support::ModbusMsgWrapper::hasVersion |
( |
| ) |
const |
|
inlineprotected |
◆ isDisconnect()
bool prbt_hardware_support::ModbusMsgWrapper::isDisconnect |
( |
| ) |
const |
|
inline |
Check if the Modbus message informs about a disconnect from the server.
- Returns
- true if the message informs about a disconnect, otherwise false.
Definition at line 126 of file modbus_msg_wrapper.h.
◆ api_spec_
const ModbusApiSpec prbt_hardware_support::ModbusMsgWrapper::api_spec_ |
|
private |
◆ msg_
const ModbusMsgInStampedConstPtr prbt_hardware_support::ModbusMsgWrapper::msg_ |
|
private |
The documentation for this class was generated from the following file: