libusb_fill_bulk_stream_transfer() is only used within OpenOCD.
 
Symbols
loading...
Files
loading...
CodeScopeDevelopment ToolsOpenOCDlibusb_fill_bulk_stream_transfer()

libusb_fill_bulk_stream_transfer() function

Helper function to populate the required libusb_transfer fields for a bulk transfer using bulk streams. Since version 1.0.19, LIBUSB_API_VERSION >= 0x01000103

Syntax

static inline void libusb_fill_bulk_stream_transfer(     struct libusb_transfer *transfer,     libusb_device_handle *dev_handle,     unsigned char endpoint,     uint32_t stream_id,     unsigned char *buffer,     int length,     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

stream_id

bulk stream id for this transfer

buffer

data buffer

length

length of data buffer

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

References

LocationText
libusb.h:1872
static inline void libusb_fill_bulk_stream_transfer(