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

#include <libusb.h>

Data Fields

uint8_t bLength
 
uint8_t bDescriptorType
 
uint16_t bcdUSB
 
uint8_t bDeviceClass
 
uint8_t bDeviceSubClass
 
uint8_t bDeviceProtocol
 
uint8_t bMaxPacketSize0
 
uint16_t idVendor
 
uint16_t idProduct
 
uint16_t bcdDevice
 
uint8_t iManufacturer
 
uint8_t iProduct
 
uint8_t iSerialNumber
 
uint8_t bNumConfigurations
 

Detailed Description

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

Definition at line 303 of file libusb.h.

Field Documentation

uint16_t bcdDevice

Device release number in binary-coded decimal

Definition at line 337 of file libusb.h.

uint16_t bcdUSB

USB specification release number in binary-coded decimal. A value of 0x0200 indicates USB 2.0, 0x0110 indicates USB 1.1, etc.

Definition at line 314 of file libusb.h.

uint8_t bDescriptorType

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

Definition at line 310 of file libusb.h.

uint8_t bDeviceClass

USB-IF class code for the device. See libusb_class_code.

Definition at line 317 of file libusb.h.

uint8_t bDeviceProtocol

USB-IF protocol code for the device, qualified by the bDeviceClass and bDeviceSubClass values

Definition at line 325 of file libusb.h.

uint8_t bDeviceSubClass

USB-IF subclass code for the device, qualified by the bDeviceClass value

Definition at line 321 of file libusb.h.

uint8_t bLength

Size of this descriptor (in bytes)

Definition at line 305 of file libusb.h.

uint8_t bMaxPacketSize0

Maximum packet size for endpoint 0

Definition at line 328 of file libusb.h.

uint8_t bNumConfigurations

Number of possible configurations

Definition at line 349 of file libusb.h.

uint16_t idProduct

USB-IF product ID

Definition at line 334 of file libusb.h.

uint16_t idVendor

USB-IF vendor ID

Definition at line 331 of file libusb.h.

uint8_t iManufacturer

Index of string descriptor describing manufacturer

Definition at line 340 of file libusb.h.

uint8_t iProduct

Index of string descriptor describing product

Definition at line 343 of file libusb.h.

uint8_t iSerialNumber

Index of string descriptor containing device serial number

Definition at line 346 of file libusb.h.


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