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.
Arguments
dev_handle
a device handle
desc_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
Functions called by libusb_get_descriptor()
libusb_get_descriptor()
Data read by libusb_get_descriptor()
libusb_get_descriptor()