![]() |
rodbus (C++ API) 1.6.0-RC1
|
Bit value and its address. More...
#include <rodbus.hpp>
Public Member Functions | |
| BitValue (uint16_t index, bool value) | |
| Fully construct BitValue specifying the value of each field. More... | |
Public Attributes | |
| uint16_t | index |
| Address of the bit. More... | |
| bool | value |
| Value of the bit. More... | |
Friends | |
| class | CppBitValueFriend |
Bit 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::BitValue::BitValue | ( | uint16_t | index, |
| bool | value | ||
| ) |
| uint16_t rodbus::BitValue::index |
Address of the bit.
| bool rodbus::BitValue::value |
Value of the bit.