📄 reqcode.lst
字号:
C51 COMPILER V7.50 REQCODE 10/30/2007 16:17:27 PAGE 1
C51 COMPILER V7.50, COMPILATION OF MODULE REQCODE
OBJECT MODULE PLACED IN reqcode.OBJ
COMPILER INVOKED BY: D:\Program Files\Keil\C51\BIN\C51.EXE reqcode.c BROWSE DEBUG OBJECTEXTEND
line level source
1 /****************************************Copyright (c)**************************************************
2
3 ** 文 件 名: init.c
4 ** 最后修改日期: 2006年10月19日
5 ** 描 述: USB驱动程序软件包: D14 设备端驱动程序 设备请求码程序
6 ** 版 本: V1.0
7 **********************************************************************************************************
-/
8
9
10
11
12 #include "standard.h"
13 #include "Usb.h"
14 #include "kernel.h"
15
16
17
18 //标准设备描述
19 DEVICE_DESCRIPTOR code Standard_Device_Descriptor[] =
20 {
21
22 sizeof(DEVICE_DESCRIPTOR), /* length */
23 0x01, /* 1. bDescriptorType */
24 SWAP(0x0110), /* 2.-3. Version 1.1 USB spec Word */
25 0x00, /* 4. Class */
26 0x00, /* 5. bDeviceSubClass */
27 0x00, /* 6. bDeviceProtocol */
28 0x40, /* 7. bMaxPacketSize0 */
29 SWAP(0x0471), /* 8.-9. idVendor */
30 SWAP(0x1552), /* a.-b. idProduct for no Filter Driver */
31 SWAP(0x0000), /* c.-d. bcdDevice */
32 0x01, /* e. iManufacturer */
33 0x02, /* f. iProduct */
34 0x00, /* 10. iSerialNumber */
35 0x01 /* 11. bNumConfigurations */
36
37 };
38
39
40 DEVICE_DESCRIPTOR code HS_Device_Descriptor[] =
41 {
42
43 sizeof(DEVICE_DESCRIPTOR), /* length */
44 0x01, /* 1. bDescriptorType */
45 SWAP(0x0200), /* 2.-3. Version 2.0 USB spec Word */
46 0x00, /* 4. Class */
47 0x00, /* 5. bDeviceSubClass */
48 0x00, /* 6. bDeviceProtocol */
49 0x40, /* 7. bMaxPacketSize0 */
50 SWAP(0x0471), /* 8.-9. idVendor */
51 SWAP(0x1552), /* a.-b. idProduct */
52 SWAP(0x0000), /* c.-d. bcdDevice */
53 0x01, /* e. iManufacturer */
54 0x02, /* f. iProduct */
C51 COMPILER V7.50 REQCODE 10/30/2007 16:17:27 PAGE 2
55 0x00, /* 10. iSerialNumber */
56 0x01 /* 11. bNumConfigurations */
57
58 };
59
60 //***********************************************************************
61 //* *
62 //* Routine : HS Device Qualifier *
63 //* Input : None *
64 //* Output : None *
65 //* Function : None *
66 //* *
67 //***********************************************************************
68
69
70 HS_DEVICE_QUALIFIER code HS_Device_Qualifier[] =
71 {
72
73 sizeof(HS_DEVICE_QUALIFIER), //length of HS Device Descriptor
74 0x06, //HS Device Qualifier Type
75 SWAP(0x0200), // USB 2.0 version
76 0x00, //Device class
77 0x00, //Device SubClass
78 0x00, //Device Protocol Code
79 0x40, //Maximum Packet SIze for other speed
80 0x01, //Number of Other speed configurations
81 0x00 //Reserved
82
83 };
84
85
86 //***********************************************************************
87 //* *
88 //* Routine : Standard Configuration Descriptor *
89 //* Input : None *
90 //* Output : None *
91 //* Function : None *
92 //* *
93 //***********************************************************************
94
95 CONFIGURATION_DESCRIPTOR code Standard_Config_Descriptor[] =
96 {
97
98 sizeof(CONFIGURATION_DESCRIPTOR), //Length of the configuration Descriptor
99 0x02, //Configuration Descriptor
100 SWAP(CONFIG_LENGTH), //Total length of the configurations,interface and class/endpoint
101 0x01, //No. of interface supported
102 0x01, //Configuration Value
103 0x01, //Index of string descriptor
104 0xC0, //Configurations Characteristic //修改
105 0xFA //Maximun Power// 修改
106
107 };
108
109
110 //***********************************************************************
111 //* *
112 //* Routine : Other speed Configuration Descriptor *
113 //* Input : None *
114 //* Output : None *
115 //* Function : None *
116 //* *
C51 COMPILER V7.50 REQCODE 10/30/2007 16:17:27 PAGE 3
117 //***********************************************************************
118
119 OTHER_SPEED_CONFIG_DESCRIPTOR code Other_Speed_Config_Descriptor[] =
120 {
121
122 sizeof(OTHER_SPEED_CONFIG_DESCRIPTOR), //length of other speed configuration descriptor
123 0x07, //Other speed configuration Type
124 SWAP(CONFIG_LENGTH), //Total length
125 0x01, //No of interface supported
126 0x01, //Configuration Value
127 0x01, //Index of string descriptor
128 0x80, //Configurations Characteristic // 修改
129 0xFA //Maximun Power// 修改
130
131 };
132
133
134
135 //***********************************************************************
136 //* *
137 //* Routine : Standard Interface Descriptor *
138 //* Input : None *
139 //* Output : None *
140 //* Function : None *
141 //* *
142 //***********************************************************************
143
144 INTERFACE_DESCRIPTOR code Bulk_Interface_Descriptor[] =
145 {
146
147 sizeof(INTERFACE_DESCRIPTOR), //Length of standard interface descriptor
148 0x04, //Standard Interface Type
149 0x00, //No of Interface
150 0x00, //Alternate Setting Selector
151 0x04, //No of Endpoints
152 0x00, //Interface Class
153 0x00, //ATAPI Interface Sub Class
154 0x00, //Bulk Only Interface Protocol
155 0x00 //Index of interface string desriptor
156 };
157
158 INTERFACE_DESCRIPTOR code HS_Bulk_Interface_Descriptor[] =
159 {
160 sizeof(INTERFACE_DESCRIPTOR), //Length of standard interface descriptor
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -