读段报告描述符,有不明白之处 0x05,0x01, // Usage Page Generic Desktop 0x09,0x04, // Usage Joystick 0xA1,0x01, // Collection Application 0x85,0x01, // Report ID 1 0x09,0x30, // Usage X 0x16,0x00,0xFE, // Logical Minimum FE00h (-512d) 0x26,0xFF,0x01, // Logical Maximum 1FFh (511d) 0x35,0x00, // Physical Minimum 0 0x46,0xFF,0x03, // Physical Maximum 3FFh (1023d) 0x75,0x0A, // Report Size Ah (10d) 0x95,0x01, // Report Count 1 0x81,0x02, // Input (Variable) 0x75,0x06, // Report Size 6 0x81,0x03, // Input (Constant, Variable) 0xA1,0x00, // Collection Linked 0x05,0x01, // Usage Page Generic Desktop 0x09,0x31, // Usage Y 0x15,0x00, // Logical Minimum 0 0x25,0x3F, // Logical Maximum 3Fh (63d) 0x35,0x00, // Physical Minimum 0 0x45,0x3F, // Physical Maximum 3Fh (63d) 0x75,0x06, // Report Size 6 0x95,0x01, // Report Count 1 0x81,0x02, // Input (Variable) 0x75,0x02, // Report Size 2 0x81,0x03, // Input (Constant, Variable) 0x09,0x35, // Usage Rz 0x75,0x06, // Report Size 6 0x81,0x02, // Input (Variable) 0x75,0x02, // Report Size 2 0x81,0x03, // Input (Constant, Variable) 0xC0 , // End Collection 0x05,0x09, // Usage Page Button 0x15,0x00, // Logical Minimum 0 0x19,0x01, // Usage Minimum Button 1 0x29,0x08, // Usage Maximum Button 8 0x25,0x01, // Logical Maximum 1 0x35,0x00, // Physical Minimum 0 0x45,0x01, // Physical Maximum 1 0x75,0x01, // Report Size 1 0x95,0x08, // Report Count 8 0x81,0x02, // Input (Variable) 0x06,0x01,0xFF, // Usage Page Generic Desktop --搬出USB.org的HID Usage Tables.pdf还是不了解此句的含义 0x09,0x49, // Usage Undefined -------------合并起来什么意思呢? 0x75,0x01, // Report Size 1 0x95,0x01, // Report Count 1 0x81,0x02, // Input (Variable) 0x75,0x07, // Report Size 7 0x81,0x03, // Input (Constant, Variable) ................................................. ............................................省略
|