Created
November 11, 2020 06:01
-
-
Save tmk/8e8e6185af93e4e3ccd2660684f9cf7c to your computer and use it in GitHub Desktop.
Adafruit nRF52 Arduino example: USB Descriptor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Adafruit TinyUSB Library for Arduino: | |
https://github.com/adafruit/Adafruit_TinyUSB_Arduino/blob/master/examples/HID/hid_keyboard/hid_keyboard.ino | |
Bus 003 Device 047: ID 239a:8029 | |
Device Descriptor: | |
bLength 18 | |
bDescriptorType 1 | |
bcdUSB 2.00 | |
bDeviceClass 239 Miscellaneous Device | |
bDeviceSubClass 2 | |
bDeviceProtocol 1 Interface Association | |
bMaxPacketSize0 64 | |
idVendor 0x239a | |
idProduct 0x8029 | |
bcdDevice 1.00 | |
iManufacturer 1 Adafruit LLC | |
iProduct 2 Feather nRF52840 Express | |
iSerial 3 4669B30DB6AC34F3 | |
bNumConfigurations 1 | |
Configuration Descriptor: | |
bLength 9 | |
bDescriptorType 2 | |
wTotalLength 0x0064 | |
bNumInterfaces 3 | |
bConfigurationValue 1 | |
iConfiguration 0 | |
bmAttributes 0xa0 | |
(Bus Powered) | |
Remote Wakeup | |
MaxPower 100mA | |
Interface Association: | |
bLength 8 | |
bDescriptorType 11 | |
bFirstInterface 0 | |
bInterfaceCount 2 | |
bFunctionClass 2 Communications | |
bFunctionSubClass 2 Abstract (modem) | |
bFunctionProtocol 0 | |
iFunction 0 | |
Interface Descriptor: | |
bLength 9 | |
bDescriptorType 4 | |
bInterfaceNumber 0 | |
bAlternateSetting 0 | |
bNumEndpoints 1 | |
bInterfaceClass 2 Communications | |
bInterfaceSubClass 2 Abstract (modem) | |
bInterfaceProtocol 0 | |
iInterface 0 | |
CDC Header: | |
bcdCDC 1.20 | |
CDC Call Management: | |
bmCapabilities 0x00 | |
bDataInterface 1 | |
CDC ACM: | |
bmCapabilities 0x02 | |
line coding and serial state | |
CDC Union: | |
bMasterInterface 0 | |
bSlaveInterface 1 | |
Endpoint Descriptor: | |
bLength 7 | |
bDescriptorType 5 | |
bEndpointAddress 0x81 EP 1 IN | |
bmAttributes 3 | |
Transfer Type Interrupt | |
Synch Type None | |
Usage Type Data | |
wMaxPacketSize 0x0008 1x 8 bytes | |
bInterval 16 | |
Interface Descriptor: | |
bLength 9 | |
bDescriptorType 4 | |
bInterfaceNumber 1 | |
bAlternateSetting 0 | |
bNumEndpoints 2 | |
bInterfaceClass 10 CDC Data | |
bInterfaceSubClass 0 | |
bInterfaceProtocol 0 | |
iInterface 0 | |
Endpoint Descriptor: | |
bLength 7 | |
bDescriptorType 5 | |
bEndpointAddress 0x01 EP 1 OUT | |
bmAttributes 2 | |
Transfer Type Bulk | |
Synch Type None | |
Usage Type Data | |
wMaxPacketSize 0x0040 1x 64 bytes | |
bInterval 0 | |
Endpoint Descriptor: | |
bLength 7 | |
bDescriptorType 5 | |
bEndpointAddress 0x82 EP 2 IN | |
bmAttributes 2 | |
Transfer Type Bulk | |
Synch Type None | |
Usage Type Data | |
wMaxPacketSize 0x0040 1x 64 bytes | |
bInterval 0 | |
Interface Descriptor: | |
bLength 9 | |
bDescriptorType 4 | |
bInterfaceNumber 2 | |
bAlternateSetting 0 | |
bNumEndpoints 1 | |
bInterfaceClass 3 Human Interface Device | |
bInterfaceSubClass 0 | |
bInterfaceProtocol 0 | |
iInterface 0 | |
HID Device Descriptor: | |
bLength 9 | |
bDescriptorType 33 | |
bcdHID 1.11 | |
bCountryCode 0 Not supported | |
bNumDescriptors 1 | |
bDescriptorType 34 Report | |
wDescriptorLength 63 | |
Report Descriptor: (length is 63) | |
Item(Global): Usage Page, data= [ 0x01 ] 1 | |
Generic Desktop Controls | |
Item(Local ): Usage, data= [ 0x06 ] 6 | |
Keyboard | |
Item(Main ): Collection, data= [ 0x01 ] 1 | |
Application | |
Item(Global): Usage Page, data= [ 0x07 ] 7 | |
Keyboard | |
Item(Local ): Usage Minimum, data= [ 0xe0 ] 224 | |
Control Left | |
Item(Local ): Usage Maximum, data= [ 0xe7 ] 231 | |
GUI Right | |
Item(Global): Logical Minimum, data= [ 0x00 ] 0 | |
Item(Global): Logical Maximum, data= [ 0x01 ] 1 | |
Item(Global): Report Count, data= [ 0x08 ] 8 | |
Item(Global): Report Size, data= [ 0x01 ] 1 | |
Item(Main ): Input, data= [ 0x02 ] 2 | |
Data Variable Absolute No_Wrap Linear | |
Preferred_State No_Null_Position Non_Volatile Bitfield | |
Item(Global): Report Count, data= [ 0x01 ] 1 | |
Item(Global): Report Size, data= [ 0x08 ] 8 | |
Item(Main ): Input, data= [ 0x01 ] 1 | |
Constant Array Absolute No_Wrap Linear | |
Preferred_State No_Null_Position Non_Volatile Bitfield | |
Item(Global): Usage Page, data= [ 0x07 ] 7 | |
Keyboard | |
Item(Local ): Usage Minimum, data= [ 0x00 ] 0 | |
No Event | |
Item(Local ): Usage Maximum, data= [ 0xff ] 255 | |
(null) | |
Item(Global): Logical Minimum, data= [ 0x00 ] 0 | |
Item(Global): Logical Maximum, data= [ 0xff ] 255 | |
Item(Global): Report Count, data= [ 0x06 ] 6 | |
Item(Global): Report Size, data= [ 0x08 ] 8 | |
Item(Main ): Input, data= [ 0x00 ] 0 | |
Data Array Absolute No_Wrap Linear | |
Preferred_State No_Null_Position Non_Volatile Bitfield | |
Item(Global): Usage Page, data= [ 0x08 ] 8 | |
LEDs | |
Item(Local ): Usage Minimum, data= [ 0x01 ] 1 | |
NumLock | |
Item(Local ): Usage Maximum, data= [ 0x05 ] 5 | |
Kana | |
Item(Global): Report Count, data= [ 0x05 ] 5 | |
Item(Global): Report Size, data= [ 0x01 ] 1 | |
Item(Main ): Output, data= [ 0x02 ] 2 | |
Data Variable Absolute No_Wrap Linear | |
Preferred_State No_Null_Position Non_Volatile Bitfield | |
Item(Global): Report Count, data= [ 0x01 ] 1 | |
Item(Global): Report Size, data= [ 0x03 ] 3 | |
Item(Main ): Output, data= [ 0x01 ] 1 | |
Constant Array Absolute No_Wrap Linear | |
Preferred_State No_Null_Position Non_Volatile Bitfield | |
Item(Main ): End Collection, data=none | |
Endpoint Descriptor: | |
bLength 7 | |
bDescriptorType 5 | |
bEndpointAddress 0x83 EP 3 IN | |
bmAttributes 3 | |
Transfer Type Interrupt | |
Synch Type None | |
Usage Type Data | |
wMaxPacketSize 0x0040 1x 64 bytes | |
bInterval 2 | |
Device Status: 0x0000 | |
(Bus Powered) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment