java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.serialbus.QModbusPdu
io.qt.serialbus.QModbusResponse
io.qt.serialbus.QModbusExceptionResponse
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QModbusExceptionResponse extends QModbusResponse implements Cloneable
Container class containing the function and error code inside a Modbus ADU
Java wrapper for Qt class QModbusExceptionResponse
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.serialbus.QModbusPdu
QModbusPdu.ExceptionCode, QModbusPdu.FunctionCode
-
Constructor Summary
Constructors Modifier Constructor Description QModbusExceptionResponse()
protected
QModbusExceptionResponse(QtObject.QPrivateConstructor p)
Constructor for internal use only.QModbusExceptionResponse(QModbusPdu pdu)
QModbusExceptionResponse(QModbusPdu.FunctionCode fc, QModbusPdu.ExceptionCode ec)
-
Method Summary
Modifier and Type Method Description QModbusExceptionResponse
clone()
void
setExceptionCode(QModbusPdu.ExceptionCode ec)
void
setFunctionCode(QModbusPdu.FunctionCode c)
Methods inherited from class io.qt.serialbus.QModbusResponse
calculateDataSize, minimumDataSize, readFrom, registerDataSizeCalculator, writeTo
Methods inherited from class io.qt.serialbus.QModbusPdu
data, dataSize, decodeData, decodeData, decodeData, encodeData, encodeData, encodeData, ExceptionByte, exceptionCode, functionCode, isException, isValid, setData, size, toString
-
Constructor Details
-
QModbusExceptionResponse
public QModbusExceptionResponse() -
QModbusExceptionResponse
-
QModbusExceptionResponse
-
QModbusExceptionResponse
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
setExceptionCode
-
setFunctionCode
- Overrides:
setFunctionCode
in classQModbusPdu
-
clone
- Overrides:
clone
in classQModbusResponse
-