📄 usb_descreptor.lst
字号:
C51 COMPILER V7.00 USB_DESCREPTOR 04/03/2005 15:15:11 PAGE 1
C51 COMPILER V7.00, COMPILATION OF MODULE USB_DESCREPTOR
OBJECT MODULE PLACED IN Usb_Descreptor.OBJ
COMPILER INVOKED BY: C:\keil\C51\BIN\c51.exe Usb_Descreptor.h DB OE
stmt level source
1 #ifndef _USB_DESCREPTOR_H_
2 #define _USB_DESCREPTOR_H_
3
4 //设备描述符
5 code unsigned char DeviceDesc[18] =
6 {
7 18, // bLength
8 0x01, // bDescriptorType
9 0x00, 0x02, // bcdUSB (lsb first)
10 0x00, // bDeviceClass
11 0x00, // bDeviceSubClass
12 0x00, // bDeviceProtocol
13 64, // bMaxPacketSize0
14 0x43,0x10,
15 0x06,0x80,
16 0x00,0x01,
17 0x04,
18 0x06,
19 0x08,
20 /* 0x0c, 0x09, // idVendor (lsb first)
21 0x00, 0x10, // idProduct (lsb first)
22 0x00, 0x30, // bcdDevice (lsb first)
23 0x04, // iManufacturer
24 0x0b, // iProduct
25 0x1b, // iSerialNumber*/
26 0x01 // bNumConfigurations; //end of DeviceDesc
27 };
28
29 code unsigned char ConfigDesc[32] =
30 {
31
32 // 配置描述符
33 0x09, // Length
34 0x02, // Type
35 0x20, 0x00, // TotalLength (lsb first)
36 0x01, // NumInterfaces
37 0x01, // bConfigurationValue
38 0x00, // iConfiguration
39 0x80, // bmAttributes (no remote wakeup)
40 0x64, // MaxPower (*2mA)
41
42 // 接口描述符
43 0x09, // bLength
44 0x04, // bDescriptorType
45 0x00, // bInterfaceNumber
46 0x00, // bAlternateSetting
47 0x02, // bNumEndpoints
48 0x08, // bInterfaceClass
49 0x06, // bInterfaceSubClass
50 0x50, // bInterfaceProcotol
51 0x00, // iInterface
52
53 // 端点描述符
54 0x07, // bLength
55 0x05, // bDescriptorType
C51 COMPILER V7.00 USB_DESCREPTOR 04/03/2005 15:15:11 PAGE 2
56 0x81, // bEndpointAddress (ep1, IN)
57 0x02, // bmAttributes (Bulk)
58 0x40, 0x00, // wMaxPacketSize (lsb first)
59 0xff, // bInterval
60
61 // 端点描述符
62 0x07, // bLength
63 0x05, // bDescriptorType
64 0x02, // bEndpointAddress (ep2, OUT)
65 0x02, // bmAttributes (Bulk)
66 0x40, 0x00, // wMaxPacketSize (lsb first)
67 0xff // bInterval
68 };
69
70 code unsigned char StringDes[34]=
71 {
72 //语言描述符
73 0x04,
74 0x03,
75 0x09,
76 0x04,
77
78 //制造商描述符
79 0x01,0x03,
80 /* 0x07,0x03,0x43,0x68,0x69,0x6e,0x61,*/
81
82 //产品描述符
83 0x01,0x03,
84 /* 0x10,0x03,0x46,0x4c,0x41,0x53,0x48,0x20,0x44,0x69,0x73,0x6b,0x20,0x32,0x2e,0x30,*/
85
86 //产品序号描述符
87 0x1a,0x03,0x32,0x00, 0x30,0x00,0x30,0x00, 0x35,0x00,0x30,0x00, 0x5,0x00,0x32,0x00,
88 0x36,0x00,0x30,0x00, 0x33,0x00,0x33,0x00, 0x39,0x00
89 /* 0x26,0x03,0x00,0x80,0x02,0x02,0x1f,0x00,0x00,0x00,0x43,0x59,0x48,0x30,
90 0x30,0x31,0x20,0x20,0x46,0x4c,0x41,0x53,0x48,0x20,0x44,0x49,0x53,0x4b,
91 0x20,0x20,0x20,0x20,0x20,0x20,0x32,0x2e,0x30,0x30 */
92 };
93 ///////////////////////////////////////////////////////////////////////////////////////////////
94
95
96 #endif
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = ---- ----
CONSTANT SIZE = 84 ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = ---- ----
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -