org.avineas.comli
public interface Master
| Modifier and Type | Method and Description |
|---|---|
byte[] |
request(int destination,
byte type,
int startAddress,
int size)
Request data from a slave.
|
boolean |
transfer(int destination,
byte type,
int startAddress,
byte[] contents,
int offset,
int size)
Perform a data transfer to a slave node.
|
boolean transfer(int destination,
byte type,
int startAddress,
byte[] contents,
int offset,
int size)
destination - The slave this message is meant for. Since slaves are
numbered, this is the number of the slave (> 0)type - The transfer type. One of the transfer types
according to the COMLI specificationstartAddress - The start address where the IO should be writtencontents - The contents of the addressesoffset - The offset in the buffer to start the data transfersize - The size of the buffer to sendbyte[] request(int destination,
byte type,
int startAddress,
int size)
destination - The destination/slave numbertype - The type of the message. One of the request types
according to the COMLI specificationstartAddress - The start addresssize - The size to request