-
Notifications
You must be signed in to change notification settings - Fork 7
/
notes
36 lines (25 loc) · 1.06 KB
/
notes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
gallimaufry
http://www.beyondlogic.org/usbnutshell/usb5.shtml
Devices can only have one device descriptor. Look for that first:
- DEVICE DESCRIPTOR
- bcdUSB
- Ref usb5.shtml for parsing of the fields
HID subclasses and protocols referenced here:
- http://www.usb.org/developers/hidpage/HID1_11.pdf (page 18)
- Actual information about what Page to use is in the "Report descriptor"
HID -- Use the ".usage" value as lookup into the Spec as far as what type of HID this actually is
"Global item (Usage)": {
"Header": {
"usbhid.item.bSize": "1",
"usbhid.item.bType": "1",
"usbhid.item.bTag": "0x00000000"
},
"usbhid.item.global.usage": "7"
7 == Keyboard/Keypad
Hid keyboard structure:
- https://docs.mbed.com/docs/ble-hid/en/latest/api/md_doc_HID.html
Class codes:
- http://www.usb.org/developers/defined_class
- Create handlers for each of these classes
- bInterfaceClass in Interface Descriptor
- http://www.beyondlogic.org/usbnutshell/usb5.shtml