alpery
Joined: 02 Jul 2012 Posts: 1
|
USB Feature Read |
Posted: Mon Jul 02, 2012 7:47 am |
|
|
How can I use USB Feature Report ?
Code: |
const char USB_CLASS_SPECIFIC_DESC[] = {
6, 0, 255, // Usage Page = Vendor Defined
9, 1, // Usage = IO device
0xa1, 1, // Collection = Application
0x19, 1, // Usage minimum
0x29, 16, // Usage maximum
0x15, 0x80, // Logical minimum (-128)
0x25, 0x7F, // Logical maximum (127)
0x75, 8, // Report size = 8 (bits)
0x95, 16, // Report count = 16 bits (2 bytes)
0x81, 2, // Input (Data, Var, Abs)
0x19, 1, // Usage minimum
0x29, 16, // Usage maximum
0x75, 8, // Report size = 8 (bits)
0x95, 16, // Report count = 16 bits (2 bytes)
[b]0xB1[/b], 2, // Output (Data, Var, Abs)
0xc0 // End Collection
}; |
|
|