* @brief A contiguous block of Modbus registers to poll. */
| 40 | * @brief A contiguous block of Modbus registers to poll. |
| 41 | */ |
| 42 | struct ModbusRegisterGroup { |
| 43 | quint8 registerType; |
| 44 | quint16 startAddress; |
| 45 | quint16 count; |
| 46 | |
| 47 | ModbusRegisterGroup() : registerType(0), startAddress(0), count(0) {} |
| 48 | |
| 49 | ModbusRegisterGroup(quint8 type, quint16 start, quint16 cnt) |
| 50 | : registerType(type), startAddress(start), count(cnt) |
| 51 | {} |
| 52 | }; |
| 53 | |
| 54 | /** |
| 55 | * @brief HAL driver for Modbus RTU and Modbus TCP communication. |