libusb_interface_descriptor is only used within OpenOCD.
 
Symbols
loading...
Files
loading...
CodeScopeDevelopment ToolsOpenOCDlibusb_interface_descriptor

libusb_interface_descriptor struct

A structure representing the standard USB interface descriptor. This descriptor is documented in section 9.6.5 of the USB 3.0 specification. All multiple-byte fields are represented in host-endian format.

Syntax

struct libusb_interface_descriptor;
Implemented in libusb.h:734

Fields

bLength

Size of this descriptor (in bytes). Read more...

bDescriptorType

Descriptor type. Will have value libusb_descriptor_type ::LIBUSB_DT_INTERFACE LIBUSB_DT_INTERFACE in this context. Read more...

bInterfaceNumber

Number of this interface. Read more...

bAlternateSetting

Value used to select this alternate setting for this interface. Read more...

bNumEndpoints

Number of endpoints used by this interface (excluding the control endpoint). Read more...

bInterfaceClass

USB-IF class code for this interface. See libusb_class_code . Read more...

bInterfaceSubClass

USB-IF subclass code for this interface, qualified by the bInterfaceClass value. Read more...

bInterfaceProtocol

USB-IF protocol code for this interface, qualified by the bInterfaceClass and bInterfaceSubClass values. Read more...

iInterface

Index of string descriptor describing this interface. Read more...

endpoint

Array of endpoint descriptors. This length of this array is determined by the bNumEndpoints field. Read more...

extra

Extra descriptors. If libusb encounters unknown interface descriptors, it will store them here, should you wish to parse them. Read more...

extra_length

Length of the extra descriptors, in bytes. Must be non-negative. Read more...

References

LocationReferrerScopeText
libusb.h:734
struct libusb_interface_descriptor {
windows_winusb.c:491
static const struct libusb_interface_descriptor *get_interface_descriptor_by_number(struct libusb_device_handle *dev_handle, struct libusb_config_descriptor *conf_desc, int iface, uint8_t altsetting)
descriptor.c:172clear_interface()
struct libusb_interface_descriptor *ifp =
descriptor.c:173clear_interface()
(struct libusb_interface_descriptor *)
descriptor.c:187clear_interface()
free((void *)usb_interface->altsetting);
descriptor.c:200parse_interface()
struct libusb_interface_descriptor *ifp;
descriptor.c:204parse_interface()
struct libusb_interface_descriptor *altsetting;
descriptor.c:206parse_interface()
altsetting = realloc((void *)usb_interface->altsetting,
libusb.h:785libusb_interface::altsettinglibusb_interface
const struct libusb_interface_descriptor *altsetting;
windows_winusb.c:491get_interface_descriptor_by_number()
static const struct libusb_interface_descriptor *get_interface_descriptor_by_number(struct libusb_device_handle *dev_handle, struct libusb_config_descriptor *conf_desc, int iface, uint8_t altsetting)
windows_winusb.c:534windows_assign_endpoints()::if_descwindows_assign_endpoints()
const struct libusb_interface_descriptor *if_desc;
windows_winusb.c:3533_hid_get_config_descriptor()
struct libusb_interface_descriptor *id;

Type Use

Variables of libusb_interface_descriptor type
windows_assign_endpoints()::if_desc
_hid_get_config_descriptor()::id
clear_interface()::ifp
parse_interface()::ifp
parse_interface()::altsetting
all items filtered out
libusb_interface_descriptor
Allocators of libusb_interface_descriptor
Deletors of libusb_interface_descriptor
all items filtered out
libusb_interface_descriptor