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 class QModbusPdu
- Since:
- This class was introduced in Qt 5.8.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQModbusPdu::ExceptionCode
static enum
Java wrapper for Qt enumQModbusPdu::FunctionCode
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
QModbusPdu
(QModbusPdu arg__1) protected
QModbusPdu
(QModbusPdu.FunctionCode code, byte [] newData) Overloaded constructor forQModbusPdu(io.qt.serialbus.QModbusPdu.FunctionCode, io.qt.core.QByteArray)
.protected
QModbusPdu
(QModbusPdu.FunctionCode code, QByteArray newData) -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
assign
(QModbusPdu arg__1) clone()
Creates and returns a copy of this object.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 boolean
equals
(QModbusPdu value2) Seeoperator==(QModbusPdu,
QModbusPdu) boolean
Seeoperator==(QModbusPdu,
QModbusPdu) final QModbusPdu.ExceptionCode
final QModbusPdu.FunctionCode
int
hashCode()
Returns the objects's hash code computed byqHash(QModbusPdu)
.final boolean
final boolean
isValid()
final void
setData
(byte [] newData) Overloaded function forsetData(io.qt.core.QByteArray)
.final void
setData
(QByteArray newData) void
final short
size()
toString()
Seeoperator<<(QDebug,
QModbusPdu) void
writeTo
(QDataStream stream) Seeoperator<<(QDataStream&,
QModbusPdu) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Field Details
-
ExceptionByte
public static final byte ExceptionByte
-
-
Constructor Details
-
QModbusPdu
public QModbusPdu() -
QModbusPdu
- Parameters:
arg__1
-
-
QModbusPdu
- Parameters:
code
-newData
-
-
QModbusPdu
Overloaded constructor for
QModbusPdu(io.qt.serialbus.QModbusPdu.FunctionCode, io.qt.core.QByteArray)
.
-
-
Method Details
-
data
- Returns:
-
dataSize
- Returns:
-
exceptionCode
- Returns:
-
functionCode
- Returns:
-
isException
- Returns:
-
isValid
- Returns:
-
writeTo
See
operator<<(QDataStream&,
QModbusPdu) - Parameters:
stream
-
-
assign
- Parameters:
arg__1
-
-
equals
See
operator==(QModbusPdu,
QModbusPdu) - Parameters:
value2
-- Returns:
-
setData
- Parameters:
newData
-
-
size
- Returns:
-
setFunctionCode
- Parameters:
code
-
-
equals
See
operator==(QModbusPdu,
QModbusPdu) -
hashCode
Returns the objects's hash code computed byqHash(QModbusPdu)
. -
encodeData
-
encodeData
-
encodeData
-
decodeData
-
decodeData
-
decodeData
-
toString
See
operator<<(QDebug,
QModbusPdu) -
clone
Creates and returns a copy of this object.
-
setData
Overloaded function for
setData(io.qt.core.QByteArray)
.
-