java.lang.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
QModbusPdu
(QModbusPdu arg__1) protected
QModbusPdu
(QModbusPdu.FunctionCode code, QByteArray newData) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
assign
(QModbusPdu arg__1) clone()
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) boolean
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.final QModbusPdu.ExceptionCode
final QModbusPdu.FunctionCode
int
hashCode()
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, 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
-
data
-
dataSize
-
exceptionCode
-
functionCode
-
isException
-
isValid
-
writeTo
-
assign
-
setData
-
size
-
setFunctionCode
-
equals
Description copied from class:QtObject
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
encodeData
-
encodeData
-
encodeData
-
decodeData
-
decodeData
-
decodeData
-
toString
-
clone
-