java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.serialbus.QModbusPdu
io.qt.serialbus.QModbusRequest
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Container class containing the function code and payload that is stored inside a Modbus ADU
Java wrapper for Qt's class QModbusRequest
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.serialbus.QModbusPdu
QModbusPdu.ExceptionCode, QModbusPdu.FunctionCode
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Field Summary
Fields inherited from class io.qt.serialbus.QModbusPdu
ExceptionByte
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor for internal use only.QModbusRequest
(QModbusPdu pdu) Overloaded constructor forQModbusRequest(io.qt.serialbus.QModbusPdu.FunctionCode, io.qt.core.QByteArray)
withnewData = new io.qt.core.QByteArray()
.QModbusRequest
(QModbusPdu.FunctionCode code, QByteArray newData) -
Method Summary
Modifier and TypeMethodDescriptionstatic int
clone()
static int
void
readFrom
(QDataStream stream) static void
void
writeTo
(QDataStream stream) Methods inherited from class io.qt.serialbus.QModbusPdu
data, dataSize, decodeData, decodeData, decodeData, encodeData, encodeData, encodeData, exceptionCode, functionCode, isException, isValid, setData, setFunctionCode, size, toString
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QModbusRequest
public QModbusRequest() -
QModbusRequest
Overloaded constructor for
QModbusRequest(io.qt.serialbus.QModbusPdu.FunctionCode, io.qt.core.QByteArray)
withnewData = new io.qt.core.QByteArray()
. -
QModbusRequest
-
QModbusRequest
-
QModbusRequest
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
writeTo
- Overrides:
writeTo
in classQModbusPdu
-
readFrom
-
calculateDataSize
-
minimumDataSize
-
registerDataSizeCalculator
public static void registerDataSizeCalculator(QModbusPdu.FunctionCode fc, QModbusRequestCalculatorFunction func) -
clone
- Overrides:
clone
in classQModbusPdu
-