libusb-1.0
Public Attributes | List of all members
libusb_device_descriptor Struct Reference

#include <libusb.h>

Public Attributes

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 3.0 specification. All multiple-byte fields are represented in host-endian format.

Member Data Documentation

◆ bcdDevice

uint16_t libusb_device_descriptor::bcdDevice

Device release number in binary-coded decimal

◆ bcdUSB

uint16_t libusb_device_descriptor::bcdUSB

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

◆ bDescriptorType

uint8_t libusb_device_descriptor::bDescriptorType

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

◆ bDeviceClass

uint8_t libusb_device_descriptor::bDeviceClass

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

◆ bDeviceProtocol

uint8_t libusb_device_descriptor::bDeviceProtocol

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

◆ bDeviceSubClass

uint8_t libusb_device_descriptor::bDeviceSubClass

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

◆ bLength

uint8_t libusb_device_descriptor::bLength

Size of this descriptor (in bytes)

◆ bMaxPacketSize0

uint8_t libusb_device_descriptor::bMaxPacketSize0

Maximum packet size for endpoint 0

◆ bNumConfigurations

uint8_t libusb_device_descriptor::bNumConfigurations

Number of possible configurations

◆ idProduct

uint16_t libusb_device_descriptor::idProduct

USB-IF product ID

◆ idVendor

uint16_t libusb_device_descriptor::idVendor

USB-IF vendor ID

◆ iManufacturer

uint8_t libusb_device_descriptor::iManufacturer

Index of string descriptor describing manufacturer

◆ iProduct

uint8_t libusb_device_descriptor::iProduct

Index of string descriptor describing product

◆ iSerialNumber

uint8_t libusb_device_descriptor::iSerialNumber

Index of string descriptor containing device serial number


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