LMS 2012
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
libusb_interface_descriptor Struct Reference

#include <libusb.h>

Data Fields

uint8_t bLength
 
uint8_t bDescriptorType
 
uint8_t bInterfaceNumber
 
uint8_t bAlternateSetting
 
uint8_t bNumEndpoints
 
uint8_t bInterfaceClass
 
uint8_t bInterfaceSubClass
 
uint8_t bInterfaceProtocol
 
uint8_t iInterface
 
const struct
libusb_endpoint_descriptor
endpoint
 
const unsigned char * extra
 
int extra_length
 

Detailed Description

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

Definition at line 407 of file libusb.h.

Field Documentation

uint8_t bAlternateSetting

Value used to select this alternate setting for this interface

Definition at line 420 of file libusb.h.

uint8_t bDescriptorType

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

Definition at line 414 of file libusb.h.

uint8_t bInterfaceClass

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

Definition at line 427 of file libusb.h.

uint8_t bInterfaceNumber

Number of this interface

Definition at line 417 of file libusb.h.

uint8_t bInterfaceProtocol

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

Definition at line 435 of file libusb.h.

uint8_t bInterfaceSubClass

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

Definition at line 431 of file libusb.h.

uint8_t bLength

Size of this descriptor (in bytes)

Definition at line 409 of file libusb.h.

uint8_t bNumEndpoints

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

Definition at line 424 of file libusb.h.

const struct libusb_endpoint_descriptor* endpoint

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

Definition at line 442 of file libusb.h.

const unsigned char* extra

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

Definition at line 446 of file libusb.h.

int extra_length

Length of the extra descriptors, in bytes.

Definition at line 449 of file libusb.h.

uint8_t iInterface

Index of string descriptor describing this interface

Definition at line 438 of file libusb.h.


The documentation for this struct was generated from the following file: