⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 reqcode.lst

📁 嵌入式系统中一些外围设备驱动示例程序集
💻 LST
📖 第 1 页 / 共 3 页
字号:
 344          };
 345          
 346          ENDPOINT_DESCRIPTOR     code    Iso_Out_Zero_Descriptor[] =
 347          {
 348                  
 349                  sizeof(ENDPOINT_DESCRIPTOR),    //Length of Standard Endpoint Descriptor
 350                          0x05,                                                           //Standard Endpoint Type
 351                          0x03,                                                           //Enndpoint Address
 352                          0x01,                                                           //Endpoint Characteristic
 353                          SWAP(0x0000),                                           //Endpoint Max Packet Size
 354                          0x01                                                            //Interval for Polling Endpoint for data transfer
 355                          
 356          };
 357          
 358          ENDPOINT_DESCRIPTOR     code    Iso_In_Zero_Descriptor[] =
 359          {
 360                  
 361                  sizeof(ENDPOINT_DESCRIPTOR),    //Length of Standard Endpoint Descriptor
 362                          0x05,                                                           //Standard Endpoint Type
 363                          0x83,                                                           //Enndpoint Address
 364                          0x01,                                                           //Endpoint Characteristic
 365                          SWAP(0x0000),                                           //Endpoint Max Packet Size
C51 COMPILER V7.06   REQCODE                                                               07/02/2003 10:27:49 PAGE 7   

 366                          0x01                                                            //Interval for Polling Endpoint for data transfer
 367                          
 368          };
 369          
 370          //***********************************************************************
 371          //*                                                                                                                                                    *
 372          //*     Routine         :  Standard String Descriptor                                      *
 373          //*     Input           :  None                                                                                          *
 374          //*     Output  :  None                                                                    *
 375          //*     Function        :  None                                                            *
 376          //*                                                                                                                                                            *
 377          //***********************************************************************
 378          
 379          STRING_DESCRIPTOR       code    Standard_Product_String[] =          
 380          
 381          {        0x30,     /* length                   */
 382          0x03,      /* descriptor type = string */
 383          'P' , 0x00,
 384          'h' , 0x00,
 385          'i' , 0x00,
 386          'l' , 0x00,
 387          'i' , 0x00,
 388          'p' , 0x00,
 389          's' , 0x00,
 390          ' ' , 0x00,
 391          'I' , 0x00,
 392          'S' , 0x00,
 393          'P' , 0x00,
 394          '1' , 0x00,
 395          '5' , 0x00,
 396          '8' , 0x00,
 397          '1' , 0x00,
 398          ' ' , 0x00,
 399          'V' , 0x00,
 400          'e' , 0x00,
 401          'r' , 0x00,
 402          ' ' , 0x00,
 403          '1' , 0x00,
 404          '.' , 0x00,
 405          '0' , 0x00
 406          };
 407          
 408          //***********************************************************************
 409          //*                                                                                                                                                    *
 410          //*     Routine         :  Standard String Descriptor                                      *
 411          //*     Input           :  None                                                                                          *
 412          //*     Output  :  None                                                                    *
 413          //*     Function        :  None                                                            *
 414          //*                                                                                                                                                            *
 415          //***********************************************************************
 416          
 417          STRING_DESCRIPTOR       code    Standard_Manufacturer_String[] =             
 418          
 419          {        0x1C,     /* length                   */
 420          0x03,      /* descriptor type = string */
 421          'P' , 0x00,
 422          'h' , 0x00,
 423          'i' , 0x00,
 424          'l' , 0x00,
 425          'i' , 0x00,
 426          'p' , 0x00,
 427          ' ' , 0x00,
C51 COMPILER V7.06   REQCODE                                                               07/02/2003 10:27:49 PAGE 8   

 428          '-' , 0x00,
 429          ' ' , 0x00,
 430          'A' , 0x00,
 431          'P' , 0x00,
 432          'I' , 0x00,
 433          'C' , 0x00
 434          };
 435          
 436          
 437          
 438          //***********************************************************************
 439          //*                                                                                                                                                    *
 440          //*     Routine         :  Standard String Identifications                              *
 441          //*     Input           :  None                                                                                          *
 442          //*     Output  :  None                                                                    *
 443          //*     Function        :  None                                                            *
 444          //*                                                                                                                                                            *
 445          //***********************************************************************
 446          
 447          STRING_ID       code    Standard_String_ID[] = 
 448          {
 449                  
 450                  0x04,
 451                          0x03,
 452                          0x09,
 453                          0x04
 454                          
 455          };                                                                                                                               
 456          
 457          
 458          
 459          //***********************************************************************
 460          //*                                                                                                                                                    *
 461          //*     Routine         :  Standard Mass Storage Identifications                 *
 462          //*     Input           :  None                                                                                          *
 463          //*     Output  :  None                                                                    *
 464          //*     Function        :  None                                                            *
 465          //*                                                                                                                                                            *
 466          //***********************************************************************
 467          UC code  Test_Packet[] =
 468          {
 469                  //      0x00, 0x00,
 470                  //      0x00, 0x80, // syn pattern
 471                  0xc3,
 472                          0x00, 0x00,
 473                          0x00, 0x00,
 474                          0x00, 0x00,
 475                          0x00, 0x00,
 476                          0x00, 0xaa,
 477                          0xaa, 0xaa,
 478                          0xaa, 0xaa,
 479                          0xaa, 0xaa,
 480                          0xaa, 0xee,  //aa*4
 481                          0xee, 0xee,
 482                          0xee, 0xee,
 483                          0xee, 0xee,
 484                          0xee, 0xfe,  //ee*4
 485                          0xff, 0xff,
 486                          0xff, 0xff,
 487                          0xff, 0xff,
 488                          0xff, 0xff,
 489                          0xff, 0xff,  //FF*6
C51 COMPILER V7.06   REQCODE                                                               07/02/2003 10:27:49 PAGE 9   

 490                          0xff, 0x7f,
 491                          0xbf, 0xdf,
 492                          0xef, 0xf7,
 493                          0xfb, 0xfd,
 494                          0xfc, 0x7e,
 495                          0xbf, 0xdf,
 496                          0xef, 0xf7,
 497                          0xfb, 0xfd,
 498                          0x7e,
 499                          0xb6, 0xce  // crc
 500                          //      0xff, 0xf7
 501          };


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =   ----    ----
   CONSTANT SIZE    =    331    ----
   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 + -