![]() |
rodbus (C++ API) 1.6.0-RC1
|
Register value and its address. More...
#include <rodbus.hpp>
Public Member Functions | |
| RegisterValue (uint16_t index, uint16_t value) | |
| Fully construct RegisterValue specifying the value of each field. More... | |
Public Attributes | |
| uint16_t | index |
| Address of the register. More... | |
| uint16_t | value |
| Value of the register. More... | |
Friends | |
| class | CppRegisterValueFriend |
Register value and its address.
Modbus messages that carry a block of values (read responses and write multiple requests) encode a starting address and the values in address order, but not a per-value address. The library computes the index from the starting address and the value's position as a convenience.
| rodbus::RegisterValue::RegisterValue | ( | uint16_t | index, |
| uint16_t | value | ||
| ) |
Fully construct RegisterValue specifying the value of each field.
| index | Address of the register |
| value | Value of the register |
| uint16_t rodbus::RegisterValue::index |
Address of the register.
| uint16_t rodbus::RegisterValue::value |
Value of the register.