Loading...
Searching...
No Matches
usb_descriptor_device_t Struct Reference

USB device descriptor (USB 2.0 spec table 9-8) More...

Detailed Description

USB device descriptor (USB 2.0 spec table 9-8)

Definition at line 123 of file descriptor.h.

#include <descriptor.h>

Data Fields

uint8_t length
 Size of this descriptor.
 
uint8_t type
 Descriptor type (USB_TYPE_DESCRIPTOR_DEVICE)

 
uint16_t bcd_usb
 Binary-coded decimal USB release specification

 
uint8_t class
 Device class code

 
uint8_t subclass
 Device subclass code

 
uint8_t protocol
 Device protocol code

 
uint8_t max_packet_size
 EP0 max packet size (8, 16, 32 or 64 bytes)

 
uint16_t vendor_id
 Vendor ID (as assigned by the USB-IF)

 
uint16_t product_id
 Product ID

 
uint16_t bcd_device
 Binary-coded decimal device release

 
uint8_t manufacturer_idx
 Manufacturer string index number

 
uint8_t product_idx
 Product string index number

 
uint8_t serial_idx
 Device serial number string index number

 
uint8_t num_configurations
 Number of possible configurations

 

Field Documentation

◆ bcd_device

uint16_t usb_descriptor_device_t::bcd_device

Binary-coded decimal device release

Definition at line 133 of file descriptor.h.

◆ bcd_usb

uint16_t usb_descriptor_device_t::bcd_usb

Binary-coded decimal USB release specification

Definition at line 126 of file descriptor.h.

◆ class

uint8_t usb_descriptor_device_t::class

Device class code

Definition at line 127 of file descriptor.h.

◆ length

uint8_t usb_descriptor_device_t::length

Size of this descriptor.

Definition at line 124 of file descriptor.h.

◆ manufacturer_idx

uint8_t usb_descriptor_device_t::manufacturer_idx

Manufacturer string index number

Definition at line 134 of file descriptor.h.

◆ max_packet_size

uint8_t usb_descriptor_device_t::max_packet_size

EP0 max packet size (8, 16, 32 or 64 bytes)

Definition at line 130 of file descriptor.h.

◆ num_configurations

uint8_t usb_descriptor_device_t::num_configurations

Number of possible configurations

Definition at line 137 of file descriptor.h.

◆ product_id

uint16_t usb_descriptor_device_t::product_id

Product ID

Definition at line 132 of file descriptor.h.

◆ product_idx

uint8_t usb_descriptor_device_t::product_idx

Product string index number

Definition at line 135 of file descriptor.h.

◆ protocol

uint8_t usb_descriptor_device_t::protocol

Device protocol code

Definition at line 129 of file descriptor.h.

◆ serial_idx

uint8_t usb_descriptor_device_t::serial_idx

Device serial number string index number

Definition at line 136 of file descriptor.h.

◆ subclass

uint8_t usb_descriptor_device_t::subclass

Device subclass code

Definition at line 128 of file descriptor.h.

◆ type

uint8_t usb_descriptor_device_t::type

Descriptor type (USB_TYPE_DESCRIPTOR_DEVICE)

Definition at line 125 of file descriptor.h.

◆ vendor_id

uint16_t usb_descriptor_device_t::vendor_id

Vendor ID (as assigned by the USB-IF)

Definition at line 131 of file descriptor.h.


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