USB DESCRIPTORS, (CON’T)
Offset Field
Size Value Description
HID Interface Descriptor (Keyboard)
0
bLength
1
09
1
bDescriptorType
1
04
2
bInterfaceNumber
1
00
3
bAlternateSetting
1
00
4
bNumEndpoints
1
01
5
bInterfaceClass
1
03
6
bInterfaceSubClass 1
01
7
bInterfaceProtocol
1
01
8
iInterface
1
00
Interface Descriptor length
Interface Descriptor
Index for HID interface
Alternate Setting index
Number of endpoints in this interface.
This includes one interrupt endpoint
USB HID class
Keyboard subclass
Boot protocol
Index for interface string
descriptor – none
HID Class Descriptor (Keyboard)
0
bLength
1
1
bDescriptorType
1
2
bcdHID
2
4
bCountryCode
1
5
bNumDescriptors
1
6
bDescriptorType
1
7
wDescriptorLength
2
09
21
0101
00
01
22
0040
HID Descriptor length
HID Descriptor
HID Specification Release (1.01)
Country Code (not supported)
Number of class descriptors. The one
descriptor is the report descriptor
Report Descriptor
Length of Report Descriptor
EndPoint Descriptor (Keyboard)
0
bLength
1
1
bDescriptor type
1
2
bEndpointAddress
1
3
bmAttributes
1
4
wMaxPacketSize
2
6
bInterval
1
07
05
83
03
0008
04
Endpoint Descriptor Length
Endpoint Descriptor
Address:Endpoint3.IN
Endpoint Attributes: interrupt
Maximum Packet Size: 8 bytes
Polling Interval
Copyright ©1999-2001 Semtech Corporation
5
DOC3-GNP-001-DS-104
www.semtech.com