📄 reqcode.lst
字号:
169 sizeof(INTERFACE_DESCRIPTOR), //Length of standard interface descriptor
170 0x04, //Standard Interface Type
171 0x00, //No of Interface
172 0x00, //Alternate Setting Selector
173 0x04, //No of Endpoints
174 0x00, //Interface Class
175 0x00, //ATAPI Interface Sub Class
176 0x00, //Bulk Only Interface Protocol
177 0x00 //Index of interface string desriptor
178 };
179
C51 COMPILER V7.06 REQCODE 07/02/2003 10:27:49 PAGE 4
180 INTERFACE_DESCRIPTOR code HS_Bulk_Interface_Descriptor[] =
181 {
182 sizeof(INTERFACE_DESCRIPTOR), //Length of standard interface descriptor
183 0x04, //Standard Interface Type
184 0x00, //No of Interface
185 0x00, //Alternate Setting Selector
186 0x04, //No of Endpoints
187 0x00, //Interface Class
188 0x00, //ATAPI Interface Sub Class
189 0x00, //Bulk Only Interface Protocol
190 0x00 //Index of interface string desriptor
191 };
192
193
194 //***********************************************************************
195 //* *
196 //* Routine : Standard Endpoint Descriptor *
197 //* Input : None *
198 //* Output : None *
199 //* Function : None *
200 //* *
201 //***********************************************************************
202
203 ENDPOINT_DESCRIPTOR code Bulk_Out_Descriptor[] =
204 {
205
206 sizeof(ENDPOINT_DESCRIPTOR), //Length of Standard Endpoint Descriptor
207 0x05, //Standard Endpoint Type
208 0x02, //Set Bulk endpoint to 1 for ATAPI mode
209 0x02, //Endpoint Characteristic
210 SWAP(0x0040), //Endpoint Max Packet Size
211 0x00 //Interval for Polling Endpoint for data transfer
212
213 };
214
215 ENDPOINT_DESCRIPTOR code Bulk_In_Descriptor[] =
216 {
217 sizeof(ENDPOINT_DESCRIPTOR), //Length of Standard Endpoint Descriptor
218 0x05, //Standard Endpoint Type
219 0x82, //Set Bulk endpoint to 1 for ATAPI mode
220 0x02, //Endpoint Characteristic
221 SWAP(0x0040), //Endpoint Max Packet Size
222 0x00 //Interval for Polling Endpoint for data transfer
223
224 };
225
226
227 ENDPOINT_DESCRIPTOR code HS_Bulk_Out_Descriptor[] =
228 {
229
230 sizeof(ENDPOINT_DESCRIPTOR), //Length of Standard Endpoint Descriptor
231 0x05, //Standard Endpoint Type
232 0x02, //Set Bulk endpoint to 1 for ATAPI mode
233 0x02, //Endpoint Characteristic
234 SWAP(0x0200), //Endpoint Max Packet Size
235 0x00 //Interval for Polling Endpoint for data transfer
236
237 };
238
239 ENDPOINT_DESCRIPTOR code HS_Bulk_In_Descriptor[] =
240 {
241 sizeof(ENDPOINT_DESCRIPTOR), //Length of Standard Endpoint Descriptor
C51 COMPILER V7.06 REQCODE 07/02/2003 10:27:49 PAGE 5
242 0x05, //Standard Endpoint Type
243 0x82, //Set Bulk endpoint to 1 for ATAPI mode
244 0x02, //Endpoint Characteristic
245 SWAP(0x0200), //Endpoint Max Packet Size
246 0x00 //Interval for Polling Endpoint for data transfer
247
248 };
249
250
251 ENDPOINT_DESCRIPTOR code Int_Out_Descriptor[] =
252 {
253
254 sizeof(ENDPOINT_DESCRIPTOR), //Length of Standard Endpoint Descriptor
255 0x05, //Standard Endpoint Type
256 0x01, //Set Int endpoint to 2 for ATAPI mode
257 0x03, //Endpoint Characteristic
258 SWAP(0x0040), //Endpoint Max Packet Size
259 0x01 //Interval for Polling Endpoint for data transfer
260
261 };
262
263 ENDPOINT_DESCRIPTOR code Int_In_Descriptor[] =
264 {
265 sizeof(ENDPOINT_DESCRIPTOR), //Length of Standard Endpoint Descriptor
266 0x05, //Standard Endpoint Type
267 0x81, //Set Int endpoint to 2 for ATAPI mode
268 0x03, //Endpoint Characteristic
269 SWAP(0x0040), //Endpoint Max Packet Size
270 0x01 //Interval for Polling Endpoint for data transfer
271
272 };
273
274 ENDPOINT_DESCRIPTOR code HS_Int_Out_Descriptor[] =
275 {
276
277 sizeof(ENDPOINT_DESCRIPTOR), //Length of Standard Endpoint Descriptor
278 0x05, //Standard Endpoint Type
279 0x01, //Set Int endpoint to 2 for ATAPI mode
280 0x03, //Endpoint Characteristic
281 SWAP(0x0040), //Endpoint Max Packet Size
282 0x01 //Interval for Polling Endpoint for data transfer
283
284 };
285
286 ENDPOINT_DESCRIPTOR code HS_Int_In_Descriptor[] =
287 {
288 sizeof(ENDPOINT_DESCRIPTOR), //Length of Standard Endpoint Descriptor
289 0x05, //Standard Endpoint Type
290 0x81, //Set Int endpoint to 2 for ATAPI mode
291 0x03, //Endpoint Characteristic
292 SWAP(0x0040), //Endpoint Max Packet Size
293 0x01 //Interval for Polling Endpoint for data transfer
294
295 };
296
297 //***********************************************************************
298 //* *
299 //* Routine : Standard Interface Descriptor *
300 //* Input : None *
301 //* Output : None *
302 //* Function : None *
303 //* *
C51 COMPILER V7.06 REQCODE 07/02/2003 10:27:49 PAGE 6
304 //***********************************************************************
305
306 INTERFACE_DESCRIPTOR code Iso_Interface_Descriptor[] =
307 {
308
309 sizeof(INTERFACE_DESCRIPTOR), //Length of standard interface descriptor
310 0x04, //Standard Interface Type
311 0x00, //No of Interface
312 0x01, //Alternate Setting Selector
313 0x02, //No of Endpoints
314 0x00, //Interface Class
315 0x00, //Interface Sub Class
316 0x00, //Interface Protocol
317 0x00 //Index of interface string desriptor
318
319 };
320
321
322 ENDPOINT_DESCRIPTOR code Iso_Out_Descriptor[] =
323 {
324
325 sizeof(ENDPOINT_DESCRIPTOR), //Length of Standard Endpoint Descriptor
326 0x05, //Standard Endpoint Type
327 0x03, //Enndpoint Address
328 0x01, //Endpoint Characteristic
329 SWAP(0x0040), //Endpoint Max Packet Size
330 0x01 //Interval for Polling Endpoint for data transfer
331
332 };
333
334 ENDPOINT_DESCRIPTOR code Iso_In_Descriptor[] =
335 {
336
337 sizeof(ENDPOINT_DESCRIPTOR), //Length of Standard Endpoint Descriptor
338 0x05, //Standard Endpoint Type
339 0x83, //Enndpoint Address
340 0x01, //Endpoint Characteristic
341 SWAP(0x0040), //Endpoint Max Packet Size
342 0x01 //Interval for Polling Endpoint for data transfer
343
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -