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

📄 f3xx_usb0_descriptor.lst

📁 HID Mouse source code 屬於Silabs C8051F326/F327,可以做一個USB 鼠標
💻 LST
📖 第 1 页 / 共 2 页
字号:
 158                  0x09,0x06,              //usage (keyboard)
 159                  0xA1,0x01,              //collection (application)
 160                  0x85,0x01,              //      reportID (0x01)
 161                  0x05,0x07,              //      usage_Page(Keyboard)
 162                  0x19,0xE0,              //      usage_min (224) 
 163                  0x29,0xE7,              //      usage_max (231) 
 164                  0x15,0x00,              //      logical minimum (0)
 165                  0x25,0x01,      //      logical maximum (1)
 166                  0x75,0x01,              //      report size (1)
 167                  0x95,0x08,              //      report count(8)
 168                  0x81,0x02,              //      input (Data, Variable, Absolute)
 169                  0x95,0x01,              //      report count (1)
 170                  0x75,0x08,              //      report size (8)
 171                  0x81,0x07,              //      input (Constant)
 172                  0x95,0x05,              //      report count (5)
 173                  0x75,0x01,              // report size (1)
 174                  0x05,0x08,              // usage page (LEDs)
 175                  0x19,0x01,              // usage minimum (1)
 176                  0x29,0x05,              // usage maximum (5)
 177                  0x91,0x02,              // output (Data, Variable, Absolute)
 178                  0x95,0x01,              // report count (1)
 179                  0x75,0x03,              // report size (3)
C51 COMPILER V7.50   F3XX_USB0_DESCRIPTOR                                                  06/22/2006 17:45:43 PAGE 4   

 180                  0x91,0x07,      // output (Constant)
 181                  0x95,0x06,      // report count (6)
 182                  0x75,0x08,      // report size (8)
 183                  0x15,0x00,      // logical minimum (0)
 184                  0x25,0x65,      // logical maximum (101)
 185                  0x05,0x07,      // usage page (keyboard)
 186                  0x19,0x00,      // usage minimum (0)
 187                  0x29,0x65,      // usage maximum (101)
 188                  0x81,0x00,      // input (Data, Array)
 189                  0xc0,                   // end collection
 190                  0x05,0x01,      // usage page (generic desktop)
 191                  0x09,0x02,      // usage (mouse)
 192                  0xA1,0x01,      // collection (application)
 193                  0x85,0x02,      // reportID (0x02)
 194                  0x09,0x01,              // usage (pointer)
 195                  0xA1,0x00,              // collection (linked) ???
 196                  0x05,0x09,              // usage page (buttons)
 197                  0x19,0x01,              // usage minimum (1)
 198                  0x29,0x03,              // usage maximum (3)
 199                  0x15,0x00,              // logical minimum (0)
 200                  0x25,0x01,              // logical maximum (1)
 201                  0x95,0x03,              // report count (3 bytes)
 202                  0x75,0x01,              // report size (1)
 203                  0x81,0x02,              // input (3 button bits)
 204                  0x95,0x01,              // report count (1)
 205                  0x75,0x05,              // report size (5)
 206                  0x81,0x01,              // input (constant 5 bit padding)
 207                  0x05,0x01,              // usage page (generic desktop)
 208                  0x09,0x30,              // usage (X)
 209                  0x09,0x31,              // usage (Y)
 210                  0x09,0x38,      // usage (wheel)  ???
 211                  0x15,0x81,              // logical minimum (-127)
 212                  0x25,0x7F,              // logical maximum (127)
 213                  0x75,0x08,              // report size (8)
 214                  0x95,0x03,              // report count (3)
 215                  0x81,0x06,              // input (3 position bytes X & Y & wheel)
 216                  0xC0,           // end collection
 217                  //Wheel
 218                  0x09,0x38,              //Wheel
 219                  0x95,0x01,              //Wheel data size is 1 byte
 220                  0x81,0x06,              //Variable Data Bit Field whit Relative position
 221                  0x09,0x3c,              //Motion wakeup
 222                  0x15,0x00,              // 0 no movement
 223                  0x25,0x01,              // 1 movement
 224                  0x75,0x01,              //Wheel report is 1 bit for movement,bit 0 of byte 3
 225                  0x95,0x01,              // 1 report
 226                  0xb1,0x22,              // Variable Data Bit Field with absolute positioning and no preferred state
 227                  0x95,0x07,              //7 reports for reversing,upper 7 bit of byte 3
 228                  0xb1,0x01,              //constant array bit field with absolute positioning
 229                  0xC0            // end collection,
 230          
 231          };
 232          
 233          #define STR0LEN 4
 234          
 235          code const unsigned char String0Desc [STR0LEN] =
 236          {
 237             STR0LEN, 0x03, 0x09, 0x04
 238          }; //end of String0Desc
 239          
 240          #define STR1LEN sizeof ("SILICON LABORATORIES") * 2
 241          
C51 COMPILER V7.50   F3XX_USB0_DESCRIPTOR                                                  06/22/2006 17:45:43 PAGE 5   

 242          code const unsigned char String1Desc [STR1LEN] =
 243          {
 244             STR1LEN, 0x03,
 245             'S', 0,
 246             'I', 0,
 247             'L', 0,
 248             'I', 0,
 249             'C', 0,
 250             'O', 0,
 251             'N', 0,
 252             ' ', 0,
 253             'L', 0,
 254             'A', 0,
 255             'B', 0,
 256             'O', 0,
 257             'R', 0,
 258             'A', 0,
 259             'T', 0,
 260             'O', 0,
 261             'R', 0,
 262             'I', 0,
 263             'E', 0,
 264             'S', 0
 265          }; //end of String1Desc
 266          
 267          #define STR2LEN sizeof ("C8051F320 Development Board") * 2
 268          
 269          code const unsigned char String2Desc [STR2LEN] =
 270          {
 271             STR2LEN, 0x03,
 272             'C', 0,
 273             '8', 0,
 274             '0', 0,
 275             '5', 0,
 276             '1', 0,
 277             'F', 0,
 278             '3', 0,
 279             'x', 0,
 280             'x', 0,
 281             ' ', 0,
 282             'D', 0,
 283             'e', 0,
 284             'v', 0,
 285             'e', 0,
 286             'l', 0,
 287             'o', 0,
 288             'p', 0,
 289             'm', 0,
 290             'e', 0,
 291             'n', 0,
 292             't', 0,
 293             ' ', 0,
 294             'B', 0,
 295             'o', 0,
 296             'a', 0,
 297             'r', 0,
 298             'd', 0
 299          }; //end of String2Desc
 300          
 301          unsigned char* const STRINGDESCTABLE [] =
 302          {
 303             String0Desc,
C51 COMPILER V7.50   F3XX_USB0_DESCRIPTOR                                                  06/22/2006 17:45:43 PAGE 6   

 304             String1Desc,
 305             String2Desc
 306          };


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