libusb_fill_iso_transfer() is only used within OpenOCD.
 
Symbols
loading...
Files
loading...
CodeScopeDevelopment ToolsOpenOCDlibusb_fill_iso_transfer()

libusb_fill_iso_transfer() function

Helper function to populate the required libusb_transfer fields for an isochronous transfer.

Syntax

static inline void libusb_fill_iso_transfer(struct libusb_transfer *transfer,     libusb_device_handle *dev_handle,     unsigned char endpoint,     unsigned char *buffer,     int length,     int num_iso_packets,     libusb_transfer_cb_fn callback,     void *user_data,     unsigned int timeout);

Arguments

transfer

the transfer to populate

dev_handle

handle of the device that will handle the transfer

endpoint

address of the endpoint where this transfer will be sent

buffer

data buffer

length

length of data buffer

num_iso_packets

the number of isochronous packets

callback

callback function to be invoked on transfer completion

user_data

user data to pass to callback function

timeout

timeout for the transfer in milliseconds