org.avineas.comli
public interface Slave
Modifier and Type | Method and Description |
---|---|
byte |
handleRequest(byte type,
int startAddress,
byte[] toFill)
Handle a request from a master.
|
boolean |
handleTransfer(byte type,
int startAddress,
byte[] contents)
Handle a transfer from a master.
|
byte handleRequest(byte type, int startAddress, byte[] toFill)
type
- The request typestartAddress
- The start addresstoFill
- The byte array to fill with data. The size is determined by
the size of the arrayboolean handleTransfer(byte type, int startAddress, byte[] contents)
type
- The type of tranferstartAddress
- The start addresscontents
- The contents