java.lang.Object
io.qt.internal.NativeUtility.Object
io.qt.QtObject
io.qt.serialbus.QModbusPdu
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
- Direct Known Subclasses:
QModbusRequest
,QModbusResponse
Abstract container class containing the function code and payload that is stored inside a Modbus ADU
Java wrapper for Qt's class QModbusPdu
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enum QModbusPdu::ExceptionCodestatic enum
Java wrapper for Qt enum QModbusPdu::FunctionCodeNested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor for internal use only.protected
QModbusPdu
(QModbusPdu arg__1) protected
QModbusPdu
(QModbusPdu.FunctionCode code, QByteArray newData) -
Method Summary
Modifier and TypeMethodDescriptionclone()
final QByteArray
data()
final short
dataSize()
void
decodeData
(byte[] data) void
decodeData
(short[] data) void
decodeData
(Number[][] data) void
encodeData
(byte... data) void
encodeData
(short... data) void
encodeData
(Number... data) final QModbusPdu.ExceptionCode
final QModbusPdu.FunctionCode
final boolean
final boolean
isValid()
final void
setData
(QByteArray newData) void
final short
size()
toString()
void
writeTo
(QDataStream stream) Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Field Details
-
ExceptionByte
public static final byte ExceptionByte
-
-
Constructor Details
-
QModbusPdu
public QModbusPdu() -
QModbusPdu
-
QModbusPdu
-
QModbusPdu
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details