java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.serialbus.QModbusDataUnit
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QModbusDataUnit extends QtObject implements Cloneable
Container class representing single bit and 16 bit word entries in the Modbus register
Java wrapper for Qt class QModbusDataUnit
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QModbusDataUnit.RegisterType
Java wrapper for Qt enum QModbusDataUnit::RegisterType -
Constructor Summary
Constructors Modifier Constructor Description QModbusDataUnit()
protected
QModbusDataUnit(QtObject.QPrivateConstructor p)
Constructor for internal use only.QModbusDataUnit(QModbusDataUnit.RegisterType type)
QModbusDataUnit(QModbusDataUnit.RegisterType type, int newStartAddress, short newValueCount)
QModbusDataUnit(QModbusDataUnit.RegisterType type, int newStartAddress, Collection<Short> newValues)
-
Method Summary
Modifier and Type Method Description QModbusDataUnit
clone()
boolean
isValid()
QModbusDataUnit.RegisterType
registerType()
void
setRegisterType(QModbusDataUnit.RegisterType type)
void
setStartAddress(int newAddress)
void
setValue(int index, short newValue)
void
setValueCount(int newCount)
void
setValues(Collection<Short> newValues)
int
startAddress()
short
value(int index)
int
valueCount()
List<Short>
values()
-
Constructor Details
-
QModbusDataUnit
public QModbusDataUnit() -
QModbusDataUnit
-
QModbusDataUnit
public QModbusDataUnit(QModbusDataUnit.RegisterType type, int newStartAddress, Collection<Short> newValues) -
QModbusDataUnit
public QModbusDataUnit(QModbusDataUnit.RegisterType type, int newStartAddress, short newValueCount) -
QModbusDataUnit
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details