org.avineas.fins.payload
public class IOCommand extends Command
Modifier and Type | Field and Description |
---|---|
static int |
ADDRESSOFFSET |
static int |
AREACODEOFFSET |
static int |
MRC
The main request code for read/write commands.
|
static int |
SIZEOFFSET |
static int |
STARTDATAOFFSET |
MAXPAYLOADSIZE
Modifier and Type | Method and Description |
---|---|
byte |
getAreaCode() |
static int |
getMaxAddresses(int bytesPerAddress) |
int |
getNumberOfValues() |
int |
getStartAddress() |
int |
getStartBitAddress() |
void |
setStartAddress(int address)
Set the word start address for the write command.
|
void |
setStartBitAddress(int address)
Set the start bit address.
|
decode, encode, getBytes, getBytes, getMrc, getRequestCode, getSrc, setMrc, setRequestCode, setRequestCode, setSrc
public static final int MRC
public static final int AREACODEOFFSET
public static final int ADDRESSOFFSET
public static final int SIZEOFFSET
public static final int STARTDATAOFFSET
public void setStartAddress(int address)
address
- The address (word level)public void setStartBitAddress(int address)
address
- The address as 3 bytes encoded bit addresspublic int getStartBitAddress()
public int getStartAddress()
public byte getAreaCode()
public int getNumberOfValues()
public static int getMaxAddresses(int bytesPerAddress)