java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.serialbus.QModbusPdu
io.qt.serialbus.QModbusRequest
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QModbusRequest extends QModbusPdu implements Cloneable
Container class containing the function code and payload that is stored inside a Modbus ADU
Java wrapper for Qt class QModbusRequest
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.serialbus.QModbusPdu
QModbusPdu.ExceptionCode, QModbusPdu.FunctionCode
-
Constructor Summary
Constructors Modifier Constructor Description QModbusRequest()
protected
QModbusRequest(QtObject.QPrivateConstructor p)
Constructor for internal use only.QModbusRequest(QModbusPdu pdu)
QModbusRequest(QModbusPdu.FunctionCode code)
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 Type Method Description static int
calculateDataSize(QModbusRequest pdu)
QModbusRequest
clone()
static int
minimumDataSize(QModbusRequest pdu)
void
readFrom(QDataStream stream)
static void
registerDataSizeCalculator(QModbusPdu.FunctionCode fc, QModbusRequestCalculatorFunction func)
void
writeTo(QDataStream stream)
Methods inherited from class io.qt.serialbus.QModbusPdu
data, dataSize, decodeData, decodeData, decodeData, encodeData, encodeData, encodeData, ExceptionByte, exceptionCode, functionCode, isException, isValid, setData, setFunctionCode, size, toString
-
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
-