Modifier and Type | Method and Description |
---|---|
static Transfer |
LibUsb.allocTransfer()
Allocate a libusb transfer without support for isochronous transfers.
|
static Transfer |
LibUsb.allocTransfer(int isoPackets)
Allocate a libusb transfer with a specified number of isochronous packet
descriptors.
|
Modifier and Type | Method and Description |
---|---|
static int |
LibUsb.cancelTransfer(Transfer transfer)
Asynchronously cancel a previously submitted transfer.
|
static ByteBuffer |
LibUsb.controlTransferGetData(Transfer transfer)
Get the data section of a control transfer.
|
static ControlSetup |
LibUsb.controlTransferGetSetup(Transfer transfer)
Get the control setup packet of a control transfer.
|
static void |
LibUsb.fillBulkStreamTransfer(Transfer transfer,
DeviceHandle handle,
byte endpoint,
int streamId,
ByteBuffer buffer,
TransferCallback callback,
Object userData,
long timeout)
Helper function to populate the required
Transfer fields
for a bulk transfer using bulk streams. |
static void |
LibUsb.fillBulkTransfer(Transfer transfer,
DeviceHandle handle,
byte endpoint,
ByteBuffer buffer,
TransferCallback callback,
Object userData,
long timeout)
Helper function to populate the required
Transfer fields for a
bulk transfer. |
static void |
LibUsb.fillControlTransfer(Transfer transfer,
DeviceHandle handle,
ByteBuffer buffer,
TransferCallback callback,
Object userData,
long timeout)
Helper function to populate the required
Transfer fields for a
control transfer. |
static void |
LibUsb.fillInterruptTransfer(Transfer transfer,
DeviceHandle handle,
byte endpoint,
ByteBuffer buffer,
TransferCallback callback,
Object userData,
long timeout)
Helper function to populate the required
Transfer fields for an
interrupt transfer. |
static void |
LibUsb.fillIsoTransfer(Transfer transfer,
DeviceHandle handle,
byte endpoint,
ByteBuffer buffer,
int numIsoPackets,
TransferCallback callback,
Object userData,
long timeout)
Helper function to populate the required
Transfer fields for an
isochronous transfer. |
static void |
LibUsb.freeTransfer(Transfer transfer)
Free a transfer structure.
|
static ByteBuffer |
LibUsb.getIsoPacketBuffer(Transfer transfer,
int packet)
Convenience function to locate the position of an isochronous packet
within the buffer of an isochronous transfer.
|
static ByteBuffer |
LibUsb.getIsoPacketBufferSimple(Transfer transfer,
int packet)
Convenience function to locate the position of an isochronous packet
within the buffer of an isochronous transfer, for transfers where each
packet is of identical size.
|
void |
TransferCallback.processTransfer(Transfer transfer)
Processes a transfer notification.
|
static void |
LibUsb.setIsoPacketLengths(Transfer transfer,
int length)
Convenience function to set the length of all packets in an isochronous
transfer, based on the
numIsoPackets() field. |
static int |
LibUsb.submitTransfer(Transfer transfer)
Submit a transfer.
|
Copyright © 2011–2018 usb4java Team. All rights reserved.