|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Register
Interface defining a register.
A register is read-write from slave and
master or device side.
Therefor implementations have to be carefully
designed for concurrency.
Method Summary | |
---|---|
void |
setValue(byte[] bytes)
Sets the content of this register from the given raw bytes. |
void |
setValue(int v)
Sets the content of this Register from the given unsigned 16-bit value (unsigned short). |
void |
setValue(short s)
Sets the content of this register from the given signed 16-bit value (short). |
Methods inherited from interface net.wimpi.modbus.procimg.InputRegister |
---|
getValue, toBytes, toShort, toUnsignedShort |
Method Detail |
---|
void setValue(int v)
v
- the value as unsigned short (int).void setValue(short s)
s
- the value as short.void setValue(byte[] bytes)
bytes
- the raw data as byte[].
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |