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 34 of file modbus_msg_wrapper.h.
prbt_hardware_support::ModbusMsgWrapper::ModbusMsgWrapper |
( |
const ModbusMsgInStampedConstPtr & |
modbus_msg_raw, |
|
|
const ModbusApiSpec & |
api_spec |
|
) |
| |
|
inline |
virtual prbt_hardware_support::ModbusMsgWrapper::~ModbusMsgWrapper |
( |
| ) |
|
|
virtualdefault |
void prbt_hardware_support::ModbusMsgWrapper::checkStructuralIntegrity |
( |
| ) |
const |
|
inlinevirtual |
const ModbusApiSpec & prbt_hardware_support::ModbusMsgWrapper::getApiSpec |
( |
| ) |
const |
|
inlineprotected |
- Returns
- a reference to the internally stored API specification.
Definition at line 144 of file modbus_msg_wrapper.h.
uint16_t prbt_hardware_support::ModbusMsgWrapper::getRegister |
( |
uint32_t |
reg | ) |
const |
|
inlineprotected |
const ros::Time & prbt_hardware_support::ModbusMsgWrapper::getTimeStamp |
( |
| ) |
const |
|
inline |
unsigned int prbt_hardware_support::ModbusMsgWrapper::getVersion |
( |
| ) |
const |
|
inline |
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 109 of file modbus_msg_wrapper.h.
bool prbt_hardware_support::ModbusMsgWrapper::hasVersion |
( |
| ) |
const |
|
inlineprotected |
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 131 of file modbus_msg_wrapper.h.
const ModbusApiSpec prbt_hardware_support::ModbusMsgWrapper::api_spec_ |
|
private |
const ModbusMsgInStampedConstPtr prbt_hardware_support::ModbusMsgWrapper::msg_ |
|
private |
The documentation for this class was generated from the following file: