java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.serialbus.QModbusPdu
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
- Direct Known Subclasses:
QModbusRequest
,QModbusResponse
public class QModbusPdu extends QtObject implements Cloneable
Abstract container class containing the function code and payload that is stored inside a Modbus ADU
Java wrapper for Qt class QModbusPdu
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QModbusPdu.ExceptionCode
Java wrapper for Qt enum QModbusPdu::ExceptionCodestatic class
QModbusPdu.FunctionCode
Java wrapper for Qt enum QModbusPdu::FunctionCode -
Constructor Summary
Constructors Modifier Constructor Description QModbusPdu()
protected
QModbusPdu(QtObject.QPrivateConstructor p)
Constructor for internal use only.protected
QModbusPdu(QModbusPdu arg__1)
protected
QModbusPdu(QModbusPdu.FunctionCode code, QByteArray newData)
-
Method Summary
Modifier and Type Method Description QModbusPdu
clone()
QByteArray
data()
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)
static byte
ExceptionByte()
QModbusPdu.ExceptionCode
exceptionCode()
QModbusPdu.FunctionCode
functionCode()
boolean
isException()
boolean
isValid()
void
setData(QByteArray newData)
void
setFunctionCode(QModbusPdu.FunctionCode code)
short
size()
String
toString()
void
writeTo(QDataStream stream)
-
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
-
setData
-
size
-
setFunctionCode
-
ExceptionByte
public static byte ExceptionByte() -
encodeData
-
encodeData
-
encodeData
-
decodeData
-
decodeData
-
decodeData
-
toString
-
clone
-