|
jamod at SF | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.wimpi.modbus.msg.ModbusMessageImpl net.wimpi.modbus.msg.ModbusResponse net.wimpi.modbus.msg.WriteMultipleRegistersResponse
Class implementing a WriteMultipleRegistersResponse. The implementation directly correlates with the class 0 function read multiple registers (FC 16). It encapsulates the corresponding response message.
Constructor Summary | |
WriteMultipleRegistersResponse()
Constructs a new WriteMultipleRegistersResponse instance. |
|
WriteMultipleRegistersResponse(int reference,
int wordcount)
Constructs a new WriteMultipleRegistersResponse instance. |
Method Summary | |
int |
getByteCount()
Returns the number of bytes that have been written. |
int |
getReference()
Returns the reference of the register to start writing to with this WriteMultipleRegistersResponse. |
int |
getWordCount()
Returns the number of words that have been read. |
void |
readData(java.io.DataInput din)
Reads the subclass specific data from the given DataInput instance. |
void |
writeData(java.io.DataOutput dout)
Writes the subclass specific data to the given DataOutput. |
Methods inherited from class net.wimpi.modbus.msg.ModbusResponse |
createModbusResponse, setMessage |
Methods inherited from class net.wimpi.modbus.msg.ModbusMessageImpl |
getDataLength, getFunctionCode, getHexMessage, getOutputLength, getProtocolID, getTransactionID, getUnitID, isHeadless, readFrom, setDataLength, setFunctionCode, setHeadless, setHeadless, setProtocolID, setTransactionID, setUnitID, writeTo |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WriteMultipleRegistersResponse()
public WriteMultipleRegistersResponse(int reference, int wordcount)
reference
- the offset to start reading from.wordcount
- the number of words (registers) to be read.Method Detail |
public int getReference()
public int getByteCount()
public int getWordCount()
public void writeData(java.io.DataOutput dout) throws java.io.IOException
ModbusMessageImpl
writeData
in class ModbusMessageImpl
dout
- the DataOutput to be written to.
java.io.IOException
- if an I/O related error occurs.public void readData(java.io.DataInput din) throws java.io.IOException
ModbusMessageImpl
readData
in class ModbusMessageImpl
din
- the DataInput to read from.
java.io.IOException
- if an I/O related error occurs.
|
jamod at SF | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |