STM32H750VB_DAC_AzureRTOS/Core/Inc/usbd_descriptors.h

174 lines
2.9 KiB
C

#ifndef USBD_DESCRIPTORS_H
#define USBD_DESCRIPTORS_H
UCHAR device_framework_fs[] = {
/* Device descriptor */
0x12, // bLength
0x01, // bDescriptorType
0x00, 0x02, // bcdUSB
0xEF, // bDeviceClass !! DESCRIBED IN IAD
0x02, // bDeviceSubClass !! -^
0x01, // bDeviceProtocol !! -^
0x08, // bMaxPacketSize0
0x81, 0x07, // idVendor
0x00, 0x00, // idProduct
0x00, 0x00, // bcdDevice
0x01, // iManufacturer
0x02, // iProduct
0x03, // iSerialNumber
0x01, // bNumConfigurations
/* Configuration descriptor */
0x09, // bLength
0x02, // bDescriptorType
0x20, 0x00, // wTotalLength
0x01, // bNumInterfaces
0x01, // bConfigurationValue
0x00, // iConfiguration
0xC0, // bmAttributes
0x32, // bMaxPower
/* Interface Association descriptor <ECN> */
0x08, // bLength
0x0B, // bDescriptorType !! IAD, See ECN
0x00, // bFirstInterface
0x01, // bInterfaceCount
0x01, // bFunctionClass !! AUDIO_FUNCTION
0x00, // bFunctionSubClass !! FUNCTION_SUBCLASS_UNDEFINED
0x20, // bFunctionProtocol !! AF_VERSION_02_00
0x00, // iFunction
/* Audio Control Interface descriptor */
0x09, // bLength
0x00, // bDescriptorType
0x00, // bInterfaceNumber
};
UCHAR device_framework_hs[] = {
/* Device descriptor */
0x12,
0x01,
0x00,
0x02,
0x00,
0x00,
0x00,
0x40,
0x81,
0x07,
0x00,
0x00,
0x01,
0x00,
0x01,
0x02,
0x03,
0x01,
/* Device qualifier descriptor */
0x0a,
0x06,
0x00,
0x02,
0x00,
0x00,
0x00,
0x40,
0x01,
0x00,
/* Configuration descriptor */
0x09,
0x02,
0x20,
0x00,
0x01,
0x01,
0x00,
0xc0,
0x32,
/* Interface descriptor */
0x09,
0x04,
0x00,
0x00,
0x02,
0x08,
0x06,
0x50,
0x00,
/* Endpoint descriptor (Bulk In) */
0x07,
0x05,
0x81,
0x02,
0x00,
0x02,
0x00,
/* Endpoint descriptor (Bulk Out) */
0x07,
0x05,
0x02,
0x02,
0x00,
0x02,
0x00,
};
UCHAR string_device_framework[] = {
/* Manufacturer string descriptor : Index 1 */
0x09,
0x04,
0x01,
0x0c,
0x45,
0x78,
0x70,
0x72,
0x65,
0x73,
0x20,
0x4c,
0x6f,
0x67,
0x69,
0x63,
/* Product string descriptor : Index 2 */
0x09,
0x04,
0x02,
0x0a,
0x46,
0x6c,
0x61,
0x73,
0x68,
0x20,
0x44,
0x69,
0x73,
0x6b,
/* Serial Number string descriptor : Index 3 */
0x09,
0x04,
0x03,
0x04,
0x30,
0x30,
0x30,
0x31,
};
UCHAR language_id_framework[] = {
/* English. */
0x09,
0x04,
};
#endif