public interface UsbCommunication
BlockDeviceDriver can use this to
communicate with the underlying USB stack.| Modifier and Type | Field and Description |
|---|---|
static int |
TRANSFER_TIMEOUT |
| Modifier and Type | Method and Description |
|---|---|
int |
bulkInTransfer(java.nio.ByteBuffer dest)
Performs a bulk in transfer beginning at offset zero in the
buffer of length buffer#remaining(). |
int |
bulkOutTransfer(java.nio.ByteBuffer src)
Performs a bulk out transfer beginning at the offset specified in the
buffer of length buffer#remaining(). |
static final int TRANSFER_TIMEOUT
int bulkOutTransfer(java.nio.ByteBuffer src)
throws java.io.IOException
buffer of length buffer#remaining().src - The data to transfer.java.io.IOExceptionint bulkInTransfer(java.nio.ByteBuffer dest)
throws java.io.IOException
buffer of length buffer#remaining().dest - The buffer where data should be transferred.java.io.IOException