libusbK 
3.0
Library Documentation
© 2011-2021 Travis Lee Robinson. All rights reserved.
USB_DEVICE_DESCRIPTOR Struct Reference

A structure representing the standard USB device descriptor. More...

#include <libusbk.h>

Data Fields

UCHAR bLength
 Size of this descriptor (in bytes)
 
UCHAR bDescriptorType
 Descriptor type.
 
USHORT bcdUSB
 USB specification release number in binary-coded decimal. More...
 
UCHAR bDeviceClass
 USB-IF class code for the device.
 
UCHAR bDeviceSubClass
 USB-IF subclass code for the device.
 
UCHAR bDeviceProtocol
 USB-IF protocol code for the device.
 
UCHAR bMaxPacketSize0
 Maximum packet size for control endpoint 0.
 
USHORT idVendor
 USB-IF vendor ID.
 
USHORT idProduct
 USB-IF product ID.
 
USHORT bcdDevice
 Device release number in binary-coded decimal.
 
UCHAR iManufacturer
 Index of string descriptor describing manufacturer.
 
UCHAR iProduct
 Index of string descriptor describing product.
 
UCHAR iSerialNumber
 Index of string descriptor containing device serial number.
 
UCHAR bNumConfigurations
 Number of possible configurations.
 

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.

Examples:
xfer-control.c.

Field Documentation

USHORT bcdUSB

USB specification release number in binary-coded decimal.

A value of 0x0200 indicates USB 2.0, 0x0110 indicates USB 1.1, etc.


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