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

📄 reqcode.lst

📁 周立功dp1581usb2.0实验仪
💻 LST
📖 第 1 页 / 共 3 页
字号:
 178                          0x32                                                                    //Maximun Power
 179                          
C51 COMPILER V7.01  REQCODE                                                                02/09/2004 20:43:54 PAGE 4   

 180          };
 181          
 182          
 183          
 184          //***********************************************************************
 185          //*                                                                                                                                                    *
 186          //*     Routine         :  Standard Interface Descriptor                                *
 187          //*     Input           :  None                                                                                          *
 188          //*     Output  :  None                                                                    *
 189          //*     Function        :  None                                                            *
 190          //*                                                                                                                                                            *
 191          //***********************************************************************
 192          
 193          INTERFACE_DESCRIPTOR    code    Bulk_Interface_Descriptor[] =
 194          {
 195                  
 196                  sizeof(INTERFACE_DESCRIPTOR),   //Length of standard interface descriptor
 197                          0x04,                                                           //Standard Interface Type
 198                          0x00,                                                           //No of Interface
 199                          0x00,                                                           //Alternate Setting Selector
 200                          0x04,                                                           //No of Endpoints
 201                          0x00,                                                           //Interface Class
 202                          0x00,                                                           //ATAPI Interface Sub Class
 203                          0x00,                                                           //Bulk Only Interface Protocol
 204                          0x00                                                            //Index of interface string desriptor
 205          };
 206          
 207          INTERFACE_DESCRIPTOR    code    HS_Bulk_Interface_Descriptor[] =
 208          {
 209                  sizeof(INTERFACE_DESCRIPTOR),   //Length of standard interface descriptor
 210                          0x04,                                                           //Standard Interface Type
 211                          0x00,                                                           //No of Interface
 212                          0x00,                                                           //Alternate Setting Selector
 213                          0x04,                                                           //No of Endpoints
 214                          0x00,                                                           //Interface Class
 215                          0x00,                                                           //ATAPI Interface Sub Class
 216                          0x00,                                                           //Bulk Only Interface Protocol
 217                          0x00                                                            //Index of interface string desriptor
 218          };
 219          
 220          
 221          //***********************************************************************
 222          //*                                                                                                                                                    *
 223          //*     Routine         :  Standard Endpoint Descriptor                                 *
 224          //*     Input           :  None                                                                                          *
 225          //*     Output  :  None                                                                    *
 226          //*     Function        :  None                                                            *
 227          //*                                                                                                                                                            *
 228          //***********************************************************************
 229          
 230          ENDPOINT_DESCRIPTOR     code    Bulk_Out_Descriptor[] =
 231          {
 232                  
 233                  sizeof(ENDPOINT_DESCRIPTOR),    //Length of Standard Endpoint Descriptor
 234                          0x05,                                                           //Standard Endpoint Type
 235                          0x02,                                                           //Set Bulk endpoint to 1 for ATAPI mode
 236                          0x02,                                                           //Endpoint Characteristic
 237                          SWAP(0x0040),                                           //Endpoint Max Packet Size
 238                          0x00                                                            //Interval for Polling Endpoint for data transfer
 239                          
 240          };
 241          
C51 COMPILER V7.01  REQCODE                                                                02/09/2004 20:43:54 PAGE 5   

 242          ENDPOINT_DESCRIPTOR     code    Bulk_In_Descriptor[] =
 243          {
 244                  sizeof(ENDPOINT_DESCRIPTOR),    //Length of Standard Endpoint Descriptor
 245                          0x05,                                                           //Standard Endpoint Type
 246                          0x82,                                                           //Set Bulk endpoint to 1 for ATAPI mode
 247                          0x02,                                                           //Endpoint Characteristic
 248                          SWAP(0x0040),                                           //Endpoint Max Packet Size
 249                          0x00                                                            //Interval for Polling Endpoint for data transfer
 250                          
 251          };
 252          
 253          
 254          ENDPOINT_DESCRIPTOR     code    HS_Bulk_Out_Descriptor[] =
 255          {
 256                  
 257                  sizeof(ENDPOINT_DESCRIPTOR),    //Length of Standard Endpoint Descriptor
 258                          0x05,                                                           //Standard Endpoint Type
 259                          0x02,                                                           //Set Bulk endpoint to 1 for ATAPI mode
 260                          0x02,                                                           //Endpoint Characteristic
 261                          SWAP(0x0200),                                           //Endpoint Max Packet Size
 262                          0x00                                                            //Interval for Polling Endpoint for data transfer
 263                          
 264          };
 265          
 266          ENDPOINT_DESCRIPTOR     code    HS_Bulk_In_Descriptor[] =
 267          {
 268                  sizeof(ENDPOINT_DESCRIPTOR),    //Length of Standard Endpoint Descriptor
 269                          0x05,                                                           //Standard Endpoint Type
 270                          0x82,                                                           //Set Bulk endpoint to 1 for ATAPI mode
 271                          0x02,                                                           //Endpoint Characteristic
 272                          SWAP(0x0200),                                           //Endpoint Max Packet Size
 273                          0x00                                                            //Interval for Polling Endpoint for data transfer
 274                          
 275          };
 276          
 277          
 278          ENDPOINT_DESCRIPTOR     code    Int_Out_Descriptor[] =
 279          {
 280                  
 281                  sizeof(ENDPOINT_DESCRIPTOR),    //Length of Standard Endpoint Descriptor
 282                          0x05,                                                           //Standard Endpoint Type
 283                          0x01,                                                           //Set Int endpoint to 2 for ATAPI mode
 284                          0x03,                                                           //Endpoint Characteristic
 285                          SWAP(0x0040),                                           //Endpoint Max Packet Size
 286                          0x01                                                            //Interval for Polling Endpoint for data transfer
 287                          
 288          };
 289          
 290          ENDPOINT_DESCRIPTOR     code    Int_In_Descriptor[] =
 291          {
 292                  sizeof(ENDPOINT_DESCRIPTOR),    //Length of Standard Endpoint Descriptor
 293                          0x05,                                                           //Standard Endpoint Type
 294                          0x81,                                                           //Set Int endpoint to 2 for ATAPI mode
 295                          0x03,                                                           //Endpoint Characteristic
 296                          SWAP(0x0040),                                           //Endpoint Max Packet Size
 297                          0x01                                                            //Interval for Polling Endpoint for data transfer
 298                          
 299          };
 300          
 301          ENDPOINT_DESCRIPTOR     code    HS_Int_Out_Descriptor[] =
 302          {
 303                  
C51 COMPILER V7.01  REQCODE                                                                02/09/2004 20:43:54 PAGE 6   

 304                  sizeof(ENDPOINT_DESCRIPTOR),    //Length of Standard Endpoint Descriptor
 305                          0x05,                                                           //Standard Endpoint Type
 306                          0x01,                                                           //Set Int endpoint to 2 for ATAPI mode
 307                          0x03,                                                           //Endpoint Characteristic
 308                          SWAP(0x0040),                                           //Endpoint Max Packet Size
 309                          0x01                                                            //Interval for Polling Endpoint for data transfer
 310                          
 311          };
 312          
 313          ENDPOINT_DESCRIPTOR     code    HS_Int_In_Descriptor[] =
 314          {
 315                  sizeof(ENDPOINT_DESCRIPTOR),    //Length of Standard Endpoint Descriptor
 316                          0x05,                                                           //Standard Endpoint Type
 317                          0x81,                                                           //Set Int endpoint to 2 for ATAPI mode
 318                          0x03,                                                           //Endpoint Characteristic
 319                          SWAP(0x0040),                                           //Endpoint Max Packet Size
 320                          0x01                                                            //Interval for Polling Endpoint for data transfer
 321                          
 322          };
 323          
 324          //***********************************************************************
 325          //*                                                                                                                                                    *
 326          //*     Routine         :  Standard Interface Descriptor                                *
 327          //*     Input           :  None                                                                                          *
 328          //*     Output  :  None                                                                    *
 329          //*     Function        :  None                                                            *
 330          //*                                                                                                                                                            *
 331          //***********************************************************************
 332          
 333          INTERFACE_DESCRIPTOR    code    Iso_Interface_Descriptor[] =
 334          {
 335                  
 336                  sizeof(INTERFACE_DESCRIPTOR),   //Length of standard interface descriptor
 337                          0x04,                                                           //Standard Interface Type
 338                          0x00,                                                           //No of Interface
 339                          0x01,                                                           //Alternate Setting Selector
 340                          0x02,                                                           //No of Endpoints
 341                          0x00,                                                           //Interface Class
 342                          0x00,                                                           //Interface Sub Class
 343                          0x00,                                                           //Interface Protocol
 344                          0x00                                                            //Index of interface string desriptor
 345                          
 346          };
 347          
 348          
 349          ENDPOINT_DESCRIPTOR     code    Iso_Out_Descriptor[] =
 350          {
 351                  
 352                  sizeof(ENDPOINT_DESCRIPTOR),    //Length of Standard Endpoint Descriptor
 353                          0x05,                                                           //Standard Endpoint Type
 354                          0x03,                                                           //Enndpoint Address
 355                          0x01,                                                           //Endpoint Characteristic
 356                          SWAP(0x0040),                                           //Endpoint Max Packet Size
 357                          0x01                                                            //Interval for Polling Endpoint for data transfer
 358                          
 359          };
 360          
 361          ENDPOINT_DESCRIPTOR     code    Iso_In_Descriptor[] =

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -