summaryrefslogtreecommitdiffstats
path: root/src/serialbus/qmodbusclient_p.h
diff options
context:
space:
mode:
authorRalf Nolden <nolden@kde.org>2015-10-15 16:10:38 +0200
committerKarsten Heimrich <karsten.heimrich@theqtcompany.com>2015-10-19 09:04:30 +0000
commit295b0935fe64c1a8ac0cd8a0e73cfd7a7ae90b9e (patch)
treef72aed4a17e2c1230b70011901a455ff87684636 /src/serialbus/qmodbusclient_p.h
parentffb44b6679e040930b2ec5e93be3fdcc406df64b (diff)
Implement read/write multiple registers response handling.
Backed with auto-test. The start address is set in the test when creating the unit to 100 to create a valid unit instead of setting the start address in the implementation to 0 which overwrites an existing start address of a request unit. Change-Id: Iff80d4ae03ff3a03a8391b58afd87b7ab0378c61 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/serialbus/qmodbusclient_p.h')
-rw-r--r--src/serialbus/qmodbusclient_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/serialbus/qmodbusclient_p.h b/src/serialbus/qmodbusclient_p.h
index 956d16c..21c9613 100644
--- a/src/serialbus/qmodbusclient_p.h
+++ b/src/serialbus/qmodbusclient_p.h
@@ -69,6 +69,8 @@ public:
bool processReadInputRegistersResponse(const QModbusResponse &response, QModbusDataUnit *data);
bool processWriteSingleCoilResponse(const QModbusResponse &response, QModbusDataUnit *data);
bool processWriteMultipleCoilsResponse(const QModbusResponse &response, QModbusDataUnit *data);
+ bool processReadWriteMultipleRegistersResponse(const QModbusResponse &response,
+ QModbusDataUnit *data);
};
QT_END_NAMESPACE