/------------------------------------------------------------------------------
/// \brief USB user descriptor set
//------------------------------------------------------------------------------
USBD_DEVICE USR_desc =
{
/* GetDeviceDescriptor */ USBD_USR_DeviceDescriptor,
/* GetLangIDStrDescriptor */ USBD_USR_LangIDStrDescriptor,
/* GetManufacturerStrDescriptor */ USBD_USR_ManufacturerStrDescriptor,
/* GetProductStrDescriptor */ USBD_USR_ProductStrDescriptor,
/* GetSerialStrDescriptor */ USBD_USR_SerialStrDescriptor,
/* GetConfigurationStrDescriptor*/ USBD_USR_ConfigStrDescriptor,
/* GetInterfaceStrDescriptor */ USBD_USR_InterfaceStrDescriptor,
};
//------------------------------------------------------------------------------
/// \brief USB Device Descriptor
//------------------------------------------------------------------------------
__ALIGN_BEGIN uint8_t USBD_DeviceDesc[USB_SIZ_DEVICE_DESC] __ALIGN_END =
{
/* bLength */ USB_SIZ_DEVICE_DESC,
/* bDescriptorType */ USB_DEVICE_DESCRIPTOR_TYPE,
/* bcdUSB */ 0x00, 0x02,
/* bDeviceClass */ 0x02,
/* bDeviceSubClass */ 0x00,
/* bDeviceProtocol */ 0x00,
/* bMaxPacketSize */ USB_OTG_MAX_EP0_SIZE,
/* idVendor */ LOBYTE(USBD_VID),
/* idVendor */ HIBYTE(USBD_VID),
/* idProduct */ LOBYTE(USBD_PID),
/* idProduct */ HIBYTE(USBD_PID),
/* bcdDevice */ 0x01, 0x00,
/* Index of manufacturer string */ USBD_IDX_MFC_STR,
/* Index of product string */ USBD_IDX_PRODUCT_STR,
/* Index of serial number string */ USBD_IDX_SERIAL_STR,
/* bNumConfigurations */ USBD_CFG_MAX_NUM
};
//------------------------------------------------------------------------------
/// \brief USB Device Qualifier Descriptor
//------------------------------------------------------------------------------
__ALIGN_BEGIN uint8_t USBD_DeviceQualifierDesc[USB_LEN_DEV_QUALIFIER_DESC] __ALIGN_END =
{
/* bLength */ USB_LEN_DEV_QUALIFIER_DESC,
/* bDescriptorType */ USB_DESC_TYPE_DEVICE_QUALIFIER,
/* bcdUSB */ 0x00, 0x02,
/* bDeviceClass */ 0x00,
/* bDeviceSubClass */ 0x00,
/* bDeviceProtocol */ 0x00,
/* bMaxPacketSize0 */ USB_OTG_MAX_EP0_SIZE,
/* bNumConfigurations */ USBD_CFG_MAX_NUM,
/* bReserved */ 0x00,
};
//------------------------------------------------------------------------------
/// \brief USB LangID Descriptor
//------------------------------------------------------------------------------
__ALIGN_BEGIN uint8_t USBD_LangIDDesc[USB_SIZ_STRING_LANGID] __ALIGN_END =
{
/* bLength */ USB_SIZ_STRING_LANGID,
/* bDescriptorType */ USB_DESC_TYPE_STRING,
/* wLANGID[0] */ LOBYTE(USBD_LANGID_STRING),
/* wLANGID[0] */ HIBYTE(USBD_LANGID_STRING),
};
//------------------------------------------------------------------------------
/// \brief USB String Descriptor
//------------------------------------------------------------------------------
__ALIGN_BEGIN uint8_t USBD_StrDesc[USB_MAX_STR_DESC_SIZ] __ALIGN_END ;
вод дескриптор из кода который получает винда!