write and read functions perform asynchronously

pull/51/head 4.3
Felipe Herranz 2016-05-01 13:55:09 +02:00
rodzic 94f7a93ea7
commit 128dd8d68c
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -88,7 +88,7 @@ public class CP2130SpiDevice extends UsbSpiDevice
System.arraycopy(buffer, 0, buffCommand, 8, buffer.length);
connection.bulkTransfer(outEndpoint, buffCommand, buffCommand.length, USB_TIMEOUT);
serialBuffer.putWriteBuffer(buffCommand);
}
@Override
@ -136,7 +136,7 @@ public class CP2130SpiDevice extends UsbSpiDevice
buffCommand[6] = (byte) ((lengthBuffer >> 16) & 0xff);
buffCommand[7] = (byte) ((lengthBuffer >> 24) & 0xff);
connection.bulkTransfer(outEndpoint, buffCommand, buffCommand.length, USB_TIMEOUT);
serialBuffer.putWriteBuffer(buffCommand);
}
@Override
@ -154,7 +154,7 @@ public class CP2130SpiDevice extends UsbSpiDevice
System.arraycopy(buffer, 0, buffCommand, 8, buffer.length);
connection.bulkTransfer(outEndpoint, buffCommand, buffCommand.length, USB_TIMEOUT);
serialBuffer.putWriteBuffer(buffCommand);
}
@Override