0x02,
    USB_WCID_DATA('W', 'I', 'N', 'U', 'S', 'B', '\0', '\0'),
    USB_WCID_DATA(0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00)
  )
};

/* Extended Properties OS Descriptor */
static const uint8_t USBD_Composite_MsftExtPropOsDescr[] = {
  USB_WCID_EXT_PROP_OS_DESCRIPTOR(
    USB_WCID_DATA(
        /* bPropertyData "{20b6cfa4-6dc7-468a-a8db-faa7c23ddea5}" */
        '{', 0x00, '2', 0x00, '0', 0x00, 'b', 0x00,
        '6', 0x00, 'c', 0x00, 'f', 0x00, 'a', 0x00,
        '4', 0x00, '-', 0x00, '6', 0x00, 'd', 0x00,
        'c', 0x00, '7', 0x00, '-', 0x00, '4', 0x00,
        '6', 0x00, '8', 0x00, 'a', 0x00, '-', 0x00,
        'a', 0x00, '8', 0x00, 'd', 0x00, 'b', 0x00,
        '-', 0x00, 'f', 0x00, 'a', 0x00, 'a', 0x00,
        '7', 0x00, 'c', 0x00, '2', 0x00, '3', 0x00,
        'd', 0x00, 'd', 0x00, 'e', 0x00, 'a', 0x00,
        '5', 0x00, '}'
    )
  )
};

USBD_Class_cb_TypeDef* USBD_Composite_Instance() {
  return &USBD_Composite_cb;
}


static uint8_t USBD_Composite_Init(void* pdev, uint8_t cfgidx) {
Exemplo n.º 2
0
    USB_WCID_EXT_COMPAT_ID_OS_DESCRIPTOR(
        0x00,
        USB_WCID_DATA('W', 'I', 'N', 'U', 'S', 'B', '\0', '\0'),
        USB_WCID_DATA(0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00)
    )
};

/* Extended Properties OS Descriptor */
static const uint8_t USBD_DFU_MsftExtPropOsDescr[] = {
    USB_WCID_EXT_PROP_OS_DESCRIPTOR(
        USB_WCID_DATA(
            /* bPropertyData "{37fb5f90-1a34-4929-933b-8a27e1850033}" */
            '{', 0x00, '3', 0x00, '7', 0x00, 'f', 0x00, 'b', 0x00,
            '5', 0x00, 'f', 0x00, '9', 0x00, '0', 0x00, '-', 0x00,
            '1', 0x00, 'a', 0x00, '3', 0x00, '4', 0x00, '-', 0x00,
            '4', 0x00, '9', 0x00, '2', 0x00, '9', 0x00, '-', 0x00,
            '9', 0x00, '3', 0x00, '3', 0x00, 'b', 0x00, '-', 0x00,
            '8', 0x00, 'a', 0x00, '2', 0x00, '7', 0x00, 'e', 0x00,
            '1', 0x00, '8', 0x00, '5', 0x00, '0', 0x00, '0', 0x00,
            '3', 0x00, '3', 0x00, '}'
        )
    )
};


/**
  * @}
  */

/** @defgroup usbd_dfu_Private_Functions
  * @{