libusb_get_descriptor() is only used within OpenOCD.
 
Symbols
loading...
Files
loading...
CodeScopeDevelopment ToolsOpenOCDlibusb_get_descriptor()

libusb_get_descriptor() function

Retrieve a descriptor from the default control pipe. This is a convenience function which formulates the appropriate control message to retrieve the descriptor.

Syntax

static inline int libusb_get_descriptor(libusb_device_handle *dev_handle,     uint8_t desc_type,     uint8_t desc_index,     unsigned char *data,     int length);

Arguments

dev_handle

a device handle

desc_type

the descriptor type, see libusb_descriptor_type

desc_index

the index of the descriptor to retrieve

data

output buffer for descriptor

length

size of data buffer

Return value

number of bytes returned in data, or LIBUSB_ERROR code on failure

References

LocationText
libusb.h:2061
static inline int libusb_get_descriptor(libusb_device_handle *dev_handle,