nRF5 SDK v13.0.0
Data Fields
app_usbd_descriptor_device_t Struct Reference

Device descriptor. More...

#include <app_usbd_descriptor.h>

Data Fields

uint8_t bLength
 Size of the descriptor in bytes.
 
uint8_t bDescriptorType
 Should equal to APP_USBD_DESCRIPTOR_DEVICE.
 
uint16_t bcdUSB
 USB Specification Release Number in Binary-Coded Decimal.
 
uint8_t bDeviceClass
 Device class code. More...
 
uint8_t bDeviceSubClass
 Subclass code. More...
 
uint8_t bDeviceProtocol
 Subclass code. More...
 
uint8_t bMaxPacketSize0
 Maximum packet size for endpoint zero.
 
uint16_t idVendor
 Vendor ID (Assigned by the USB-IF).
 
uint16_t idProduct
 Product ID (assigned by manufacturer).
 
uint16_t bcdDevice
 Device release number in binary-coded decimal.
 
uint8_t iManufacturer
 Index of string descriptor in describing manufacturer.
 
uint8_t iProduct
 Index of string descriptor in describing product.
 
uint8_t iSerialNumber
 Index of string descriptor in describing the device's serial number.
 
uint8_t bNumConfigurations
 Number of possible configurations.
 

Detailed Description

Device descriptor.

Descriptor used for the whole device

Field Documentation

uint8_t app_usbd_descriptor_device_t::bDeviceClass

Device class code.

If 0, each interface specifies its own class information. 0xFF for vendor-specific.

uint8_t app_usbd_descriptor_device_t::bDeviceProtocol

Subclass code.

If 0, no specific protocol is defined on device basis. Each interface may define its own protocol then. If set to 0xFF, vendor-specific protocol is used.

uint8_t app_usbd_descriptor_device_t::bDeviceSubClass

Subclass code.

If bDevice Class is set to value other than 0xFF, all values here are reserved for assignment by USB-IF.


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

Documentation feedback | Developer Zone | Subscribe | Updated