Skip to content

Windows Enumeration with MS OS 2.0 descriptors #823

Closed Answered by HiFiPhile
nullpitr asked this question in Q&A
Discussion options

You must be logged in to vote

For anyone how has issue with MSOS 2.0 descriptor, here are examples for both simple device and composite device.

Simple device

tusb_desc_device_t desc_device =
{
    .bLength            = sizeof(tusb_desc_device_t),
    .bDescriptorType    = TUSB_DESC_DEVICE,
    .bcdUSB             = 0x0201,
    
    .bDeviceClass       = 0,
    .bDeviceSubClass    = 0,
    .bDeviceProtocol    = 0,
    .bMaxPacketSize0    = CFG_TUD_ENDPOINT0_SIZE,
    
    .idVendor           = 0xcafe,
    .idProduct          = 0x0201,
    .bcdDevice          = 0x0001,
    
    .iManufacturer      = 0x01,
    .iProduct           = 0x02,
    .iSerialNumber      = 0x03,
    
    .bNumConfigurations = 0x01
};

enum
{
  ITF…

Replies: 2 comments 13 replies

Comment options

You must be logged in to vote
12 replies
@dhalbert
Comment options

@gionatha
Comment options

@nullpitr
Comment options

@nullpitr
Comment options

@shilga
Comment options

Comment options

You must be logged in to vote
1 reply
@shilga
Comment options

Answer selected by HiFiPhile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
8 participants