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

📄 reqcode.lst

📁 该代码是基于菲利普ISP1581USB接口芯片与STC89C51单片机的USB2.0开发代码
💻 LST
📖 第 1 页 / 共 3 页
字号:
 161                          0x04,                                                           //Standard Interface Type
 162                          0x00,                                                           //No of Interface
 163                          0x00,                                                           //Alternate Setting Selector
 164                          0x04,                                                           //No of Endpoints
 165                          0x00,                                                           //Interface Class
 166                          0x00,                                                           //ATAPI Interface Sub Class
 167                          0x00,                                                           //Bulk Only Interface Protocol
 168                          0x00                                                            //Index of interface string desriptor
 169          };
 170          
 171          
 172          //***********************************************************************
 173          //*                                                                                                                                                    *
 174          //*     Routine         :  Standard Endpoint Descriptor                                 *
 175          //*     Input           :  None                                                                                          *
 176          //*     Output  :  None                                                                    *
 177          //*     Function        :  None                                                            *
 178          //*                                                                                                                                                            *
C51 COMPILER V7.50   REQCODE                                                               10/30/2007 16:17:27 PAGE 4   

 179          //***********************************************************************
 180          
 181          ENDPOINT_DESCRIPTOR     code    Bulk_Out_Descriptor[] =
 182          {
 183                  
 184                  sizeof(ENDPOINT_DESCRIPTOR),    //Length of Standard Endpoint Descriptor
 185                          0x05,                                                           //Standard Endpoint Type
 186                          0x02,                                                           //Set Bulk endpoint to 1 for ATAPI mode
 187                          0x02,                                                           //Endpoint Characteristic
 188                          SWAP(0x0040),                                           //Endpoint Max Packet Size
 189                          0x00                                                            //Interval for Polling Endpoint for data transfer
 190                          
 191          };
 192          
 193          ENDPOINT_DESCRIPTOR     code    Bulk_In_Descriptor[] =
 194          {
 195                  sizeof(ENDPOINT_DESCRIPTOR),    //Length of Standard Endpoint Descriptor
 196                          0x05,                                                           //Standard Endpoint Type
 197                          0x82,                                                           //Set Bulk endpoint to 1 for ATAPI mode
 198                          0x02,                                                           //Endpoint Characteristic
 199                          SWAP(0x0040),                                           //Endpoint Max Packet Size
 200                          0x00                                                            //Interval for Polling Endpoint for data transfer
 201                          
 202          };
 203          
 204          
 205          ENDPOINT_DESCRIPTOR     code    HS_Bulk_Out_Descriptor[] =
 206          {
 207                  
 208                  sizeof(ENDPOINT_DESCRIPTOR),    //Length of Standard Endpoint Descriptor
 209                          0x05,                                                           //Standard Endpoint Type
 210                          0x02,                                                           //Set Bulk endpoint to 1 for ATAPI mode
 211                          0x02,                                                           //Endpoint Characteristic
 212                          SWAP(0x0040),                                           //Endpoint Max Packet Size
 213                          0x00                                                            //Interval for Polling Endpoint for data transfer
 214                          
 215          };
 216          
 217          ENDPOINT_DESCRIPTOR     code    HS_Bulk_In_Descriptor[] =
 218          {
 219                  sizeof(ENDPOINT_DESCRIPTOR),    //Length of Standard Endpoint Descriptor
 220                          0x05,                                                           //Standard Endpoint Type
 221                          0x82,                                                           //Set Bulk endpoint to 1 for ATAPI mode
 222                          0x02,                                                           //Endpoint Characteristic
 223                          SWAP(0x0040),                                           //Endpoint Max Packet Size
 224                          0x00                                                            //Interval for Polling Endpoint for data transfer
 225                          
 226          };
 227          
 228          
 229          ENDPOINT_DESCRIPTOR     code    Int_Out_Descriptor[] =
 230          {
 231                  
 232                  sizeof(ENDPOINT_DESCRIPTOR),    //Length of Standard Endpoint Descriptor
 233                          0x05,                                                           //Standard Endpoint Type
 234                          0x01,                                                           //Set Int endpoint to 2 for ATAPI mode
 235                          0x03,                                                           //Endpoint Characteristic
 236                          SWAP(0x0040),                                           //Endpoint Max Packet Size
 237                          0x01                                                            //Interval for Polling Endpoint for data transfer
 238                          
 239          };
 240          
C51 COMPILER V7.50   REQCODE                                                               10/30/2007 16:17:27 PAGE 5   

 241          ENDPOINT_DESCRIPTOR     code    Int_In_Descriptor[] =
 242          {
 243                  sizeof(ENDPOINT_DESCRIPTOR),    //Length of Standard Endpoint Descriptor
 244                          0x05,                                                           //Standard Endpoint Type
 245                          0x81,                                                           //Set Int endpoint to 2 for ATAPI mode
 246                          0x03,                                                           //Endpoint Characteristic
 247                          SWAP(0x0040),                                           //Endpoint Max Packet Size
 248                          0x01                                                            //Interval for Polling Endpoint for data transfer
 249                          
 250          };
 251          
 252          ENDPOINT_DESCRIPTOR     code    HS_Int_Out_Descriptor[] =
 253          {
 254                  
 255                  sizeof(ENDPOINT_DESCRIPTOR),    //Length of Standard Endpoint Descriptor
 256                          0x05,                                                           //Standard Endpoint Type
 257                          0x01,                                                           //Set Int endpoint to 2 for ATAPI mode
 258                          0x03,                                                           //Endpoint Characteristic
 259                          SWAP(0x0040),                                           //Endpoint Max Packet Size
 260                          0x01                                                            //Interval for Polling Endpoint for data transfer
 261                          
 262          };
 263          
 264          ENDPOINT_DESCRIPTOR     code    HS_Int_In_Descriptor[] =
 265          {
 266                  sizeof(ENDPOINT_DESCRIPTOR),    //Length of Standard Endpoint Descriptor
 267                          0x05,                                                           //Standard Endpoint Type
 268                          0x81,                                                           //Set Int endpoint to 2 for ATAPI mode
 269                          0x03,                                                           //Endpoint Characteristic
 270                          SWAP(0x0040),                                           //Endpoint Max Packet Size
 271                          0x01                                                            //Interval for Polling Endpoint for data transfer
 272                          
 273          };
 274          
 275          //***********************************************************************
 276          //*                                                                                                                                                    *
 277          //*     Routine         :  Standard Interface Descriptor                                *
 278          //*     Input           :  None                                                                                          *
 279          //*     Output  :  None                                                                    *
 280          //*     Function        :  None                                                            *
 281          //*                                                                                                                                                            *
 282          //***********************************************************************
 283          
 284          INTERFACE_DESCRIPTOR    code    Iso_Interface_Descriptor[] =
 285          {
 286                  
 287                  sizeof(INTERFACE_DESCRIPTOR),   //Length of standard interface descriptor
 288                          0x04,                                                           //Standard Interface Type
 289                          0x00,                                                           //No of Interface
 290                          0x01,                                                           //Alternate Setting Selector
 291                          0x02,                                                           //No of Endpoints
 292                          0x00,                                                           //Interface Class
 293                          0x00,                                                           //Interface Sub Class
 294                          0x00,                                                           //Interface Protocol
 295                          0x00                                                            //Index of interface string desriptor
 296                          
 297          };
 298          
 299          
 300          ENDPOINT_DESCRIPTOR     code    Iso_Out_Descriptor[] =
 301          {
 302                  
C51 COMPILER V7.50   REQCODE                                                               10/30/2007 16:17:27 PAGE 6   

 303                  sizeof(ENDPOINT_DESCRIPTOR),    //Length of Standard Endpoint Descriptor
 304                          0x05,                                                           //Standard Endpoint Type
 305                          0x03,                                                           //Enndpoint Address
 306                          0x01,                                                           //Endpoint Characteristic
 307                          SWAP(0x0040),                                           //Endpoint Max Packet Size
 308                          0x01                                                            //Interval for Polling Endpoint for data transfer
 309                          
 310          };
 311          
 312          ENDPOINT_DESCRIPTOR     code    Iso_In_Descriptor[] =
 313          {
 314                  
 315                  sizeof(ENDPOINT_DESCRIPTOR),    //Length of Standard Endpoint Descriptor
 316                          0x05,                                                           //Standard Endpoint Type
 317                          0x83,                                                           //Enndpoint Address
 318                          0x01,                                                           //Endpoint Characteristic
 319                          SWAP(0x0040),                                           //Endpoint Max Packet Size
 320                          0x01                                                            //Interval for Polling Endpoint for data transfer
 321                          
 322          };
 323          
 324          ENDPOINT_DESCRIPTOR     code    Iso_Out_Zero_Descriptor[] =
 325          {
 326                  
 327                  sizeof(ENDPOINT_DESCRIPTOR),    //Length of Standard Endpoint Descriptor
 328                          0x05,                                                           //Standard Endpoint Type

⌨️ 快捷键说明

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