public final class ModbusRTU
extends java.lang.Object
Constructor and Description |
---|
ModbusRTU() |
Modifier and Type | Method and Description |
---|---|
static byte |
getSlaveServerAddr() |
static int |
readByte(byte slave,
int regaddr,
byte[] buffer,
int count) |
static int |
readShort(byte slave,
int regaddr,
short[] buffer,
int count) |
static void |
setSlaveServerAddr(byte slave,
int mode) |
static int |
writeByte(byte slave,
int regaddr,
byte[] buffer,
int count) |
static int |
writeShort(byte slave,
int regaddr,
short[] data,
int count) |
public static int readByte(byte slave, int regaddr, byte[] buffer, int count)
public static int readShort(byte slave, int regaddr, short[] buffer, int count)
public static int writeByte(byte slave, int regaddr, byte[] buffer, int count)
public static int writeShort(byte slave, int regaddr, short[] data, int count)
public static void setSlaveServerAddr(byte slave, int mode)
public static byte getSlaveServerAddr()