USB描述符定义:
Device_Descriptor. bLength = sizeof(Device_Descriptor_t); //该描述符结构体大小
Device_Descriptor. bDescriptorType = DEVICE_DESCRIPTOR; //描述符类型
Device_Descriptor. bcdUSB = 0x0110; //USB版本号
Device_Descriptor. bDeviceClass = 0; //设备类代码(由USB官方分配)
Device_Descriptor. bDeviceSubClass = 0; //子类代码(由USB官方分配)
Device_Descriptor. bDeviceProtocol = 0; //设备协议代码(由USB官方分配)
Device_Descriptor. bMaxPacketSize0 = 16; //端点0的最大包大小(由效大小为8,16,32,64)
Device_Descriptor. idVendor = 0x66; //生产厂商编号(由USB官方分配 )
Device_Descriptor. idProduct = 0x12; //产品编号(制造厂商分配)
Device_Descriptor. bcdDevice = 0x34; //设备出厂编号
Device_Descriptor. iManufacturer = 1; //设备厂商字符串索引
Device_Descriptor. iProduct = 2; //产品描述字符串索引
Device_Descriptor. iSerialNumber = 3; //设备序列号字符串索引
Device_Descriptor. bNumConfigurations = 1; //当前速度下能支持的配置数量