2012年2月6日 星期一

A example of HID Descriptor


A Example of HID Descriptor for SONY FRC-450

Connection Status
Device connected
Current Configuration
1
Speed
High (480 Mbit/s)
Device Address
1
Number Of Open Pipes
2
Offset
Field
Size
Value
Description
0
bLength
1
12h
1
bDescriptorType
1
01h
Device
2
bcdUSB
2
0200h
USB Spec 2.0
4
bDeviceClass
1
00h
Class info in Ifc Descriptors
5
bDeviceSubClass
1
00h
6
bDeviceProtocol
1
00h
7
bMaxPacketSize0
1
40h
64 bytes
8
idVendor
2
054Ch
Sony Corp.
10
idProduct
2
01B1h
12
bcdDevice
2
0123h
1.23
14
iManufacturer
1
01h
"SONY Corp"
15
iProduct
1
02h
"FRC-450"
16
iSerialNumber
1
00h
17
bNumConfigurations
1
01h
Offset
Field
Size
Value
Description
0
bLength
1
09h
1
bDescriptorType
1
02h
Configuration
2
wTotalLength
2
0029h
4
bNumInterfaces
1
01h
5
bConfigurationValue
1
01h
6
iConfiguration
1
00h
7
bmAttributes
1
40h
Self Powered
4..0: Reserved
...00000
5: Remote Wakeup
..0.....
No
6: Self Powered
.1......
Yes
7: Reserved (set to one)
(bus-powered for 1.0)
0.......
8
bMaxPower
1
32h
100 mA
Interface Descriptor 0/0 HID, 2 Endpoints
Offset
Field
Size
Value
Description
0
bLength
1
09h
1
bDescriptorType
1
04h
Interface
2
bInterfaceNumber
1
00h
3
bAlternateSetting
1
00h
4
bNumEndpoints
1
02h
5
bInterfaceClass
1
03h
HID
6
bInterfaceSubClass
1
00h
7
bInterfaceProtocol
1
00h
8
iInterface
1
00h
Offset
Field
Size
Value
Description
0
bLength
1
09h
1
bDescriptorType
1
21h
HID
2
bcdHID
2
0110h
1.10
4
bCountryCode
1
00h
5
bNumDescriptors
1
01h
6
bDescriptorType
1
22h
Report
7
wDescriptorLength
2
0020h
32 bytes
Endpoint Descriptor 81 1 In, Interrupt, 4 s
Offset
Field
Size
Value
Description
0
bLength
1
07h
1
bDescriptorType
1
05h
Endpoint
2
bEndpointAddress
1
81h
1 In
3
bmAttributes
1
03h
Interrupt
1..0: Transfer Type
......11
Interrupt
7..2: Reserved
000000..
4
wMaxPacketSize
2
0040h
64 bytes
6
bInterval
1
10h
4 s
Endpoint Descriptor 01 1 Out, Interrupt, 4 s
Offset
Field
Size
Value
Description
0
bLength
1
07h
1
bDescriptorType
1
05h
Endpoint
2
bEndpointAddress
1
01h
1 Out
3
bmAttributes
1
03h
Interrupt
1..0: Transfer Type
......11
Interrupt
7..2: Reserved
000000..
4
wMaxPacketSize
2
0040h
64 bytes
6
bInterval
1
10h
4 s