OpenOCD
usb_device_descriptor Struct Reference

USB Device Descriptor. More...

Data Fields

uint16_t bcdDevice
 Device Release Number (BCD). More...
 
uint16_t bcdUSB
 USB specification release number (BCD). More...
 
uint8_t bDescriptorType
 DEVICE Descriptor Type. More...
 
uint8_t bDeviceClass
 Class code. More...
 
uint8_t bDeviceProtocol
 Protocol code. More...
 
uint8_t bDeviceSubClass
 Subclass code. More...
 
uint8_t bLength
 Size of this descriptor in bytes. More...
 
uint8_t bMaxPacketSize0
 Maximum packet size for EP0 (8, 16, 32, 64). More...
 
uint8_t bNumConfigurations
 Number of possible configurations. More...
 
uint16_t idProduct
 USB Product ID. More...
 
uint16_t idVendor
 USB Vendor ID. More...
 
uint8_t iManufacturer
 Index of manufacturer string descriptor. More...
 
uint8_t iProduct
 Index of product string descriptor. More...
 
uint8_t iSerialNumber
 Index of string descriptor containing serial #. More...
 

Detailed Description

USB Device Descriptor.

See USB 1.1 spec, pp. 196 - 198

Definition at line 38 of file usb.h.

Field Documentation

◆ bcdDevice

uint16_t usb_device_descriptor::bcdDevice

Device Release Number (BCD).

Definition at line 48 of file usb.h.

◆ bcdUSB

uint16_t usb_device_descriptor::bcdUSB

USB specification release number (BCD).

Definition at line 41 of file usb.h.

◆ bDescriptorType

uint8_t usb_device_descriptor::bDescriptorType

DEVICE Descriptor Type.

Definition at line 40 of file usb.h.

◆ bDeviceClass

uint8_t usb_device_descriptor::bDeviceClass

Class code.

Definition at line 42 of file usb.h.

◆ bDeviceProtocol

uint8_t usb_device_descriptor::bDeviceProtocol

Protocol code.

Definition at line 44 of file usb.h.

◆ bDeviceSubClass

uint8_t usb_device_descriptor::bDeviceSubClass

Subclass code.

Definition at line 43 of file usb.h.

◆ bLength

uint8_t usb_device_descriptor::bLength

Size of this descriptor in bytes.

Definition at line 39 of file usb.h.

◆ bMaxPacketSize0

uint8_t usb_device_descriptor::bMaxPacketSize0

Maximum packet size for EP0 (8, 16, 32, 64).

Definition at line 45 of file usb.h.

◆ bNumConfigurations

uint8_t usb_device_descriptor::bNumConfigurations

Number of possible configurations.

Definition at line 52 of file usb.h.

◆ idProduct

uint16_t usb_device_descriptor::idProduct

USB Product ID.

Definition at line 47 of file usb.h.

◆ idVendor

uint16_t usb_device_descriptor::idVendor

USB Vendor ID.

Definition at line 46 of file usb.h.

◆ iManufacturer

uint8_t usb_device_descriptor::iManufacturer

Index of manufacturer string descriptor.

Definition at line 49 of file usb.h.

◆ iProduct

uint8_t usb_device_descriptor::iProduct

Index of product string descriptor.

Definition at line 50 of file usb.h.

◆ iSerialNumber

uint8_t usb_device_descriptor::iSerialNumber

Index of string descriptor containing serial #.

Definition at line 51 of file usb.h.


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