最終更新:2014-04-17 (木) 16:18:23 (3659d)  

DUALSHOCK 4/レポートディスクリプタ
Top / DUALSHOCK 4 / レポートディスクリプタ

USB Proberで表示

  • Full Speed device @ 3 (0x14300000): .............................................   Composite device: "Wireless Controller"
        Port Information:   0x101a
               Not Captive
               Attached to Root Hub
               External Device
               Connected
               Enabled
        Number Of Endpoints (includes EP0):   
            Total Endpoints for Configuration 1 (current):   3
        Device Descriptor   
            Descriptor Version Number:   0x0200
            Device Class:   0   (Composite)
            Device Subclass:   0
            Device Protocol:   0
            Device MaxPacketSize:   64
            Device VendorID/ProductID:   0x054C/0x05C4   (Sony Corporation)
            Device Version Number:   0x0100
            Number of Configurations:   1
            Manufacturer String:   1 "Sony Computer Entertainment"
            Product String:   2 "Wireless Controller"
            Serial Number String:   0 (none)
        Configuration Descriptor (current config)   
            Length (and contents):   41
                Raw Descriptor (hex)    0000: 09 02 29 00 01 01 00 C0  FA 09 04 00 00 02 03 00  
                Raw Descriptor (hex)    0010: 00 00 09 21 11 01 00 01  22 E3 01 07 05 84 03 40  
                Raw Descriptor (hex)    0020: 00 05 07 05 03 03 40 00  05 
            Number of Interfaces:   1
            Configuration Value:   1
            Attributes:   0xC0 (self-powered)
            MaxPower:   500 ma
            Interface #0 - HID   
                Alternate Setting   0
                Number of Endpoints   2
                Interface Class:   3   (HID)
                Interface Subclass;   0
                Interface Protocol:   0
                HID Descriptor   
                    Descriptor Version Number:   0x0111
                    Country Code:   0
                    Descriptor Count:   1
                    Descriptor 1   
                        Type:   0x22  (Report Descriptor)
                        Length (and contents):   483
                            Raw Descriptor (hex)    0000: 05 01 09 05 A1 01 85 01  09 30 09 31 09 32 09 35  
                            Raw Descriptor (hex)    0010: 15 00 26 FF 00 75 08 95  04 81 02 09 39 15 00 25  
                            Raw Descriptor (hex)    0020: 07 35 00 46 3B 01 65 14  75 04 95 01 81 42 65 00  
                            Raw Descriptor (hex)    0030: 05 09 19 01 29 0E 15 00  25 01 75 01 95 0E 81 02  
                            Raw Descriptor (hex)    0040: 06 00 FF 09 20 75 06 95  01 15 00 25 7F 81 02 05  
                            Raw Descriptor (hex)    0050: 01 09 33 09 34 15 00 26  FF 00 75 08 95 02 81 02  
                            Raw Descriptor (hex)    0060: 06 00 FF 09 21 95 36 81  02 85 05 09 22 95 1F 91  
                            Raw Descriptor (hex)    0070: 02 85 04 09 23 95 24 B1  02 85 02 09 24 95 24 B1  
                            Raw Descriptor (hex)    0080: 02 85 08 09 25 95 03 B1  02 85 10 09 26 95 04 B1  
                            Raw Descriptor (hex)    0090: 02 85 11 09 27 95 02 B1  02 85 12 06 02 FF 09 21  
                            Raw Descriptor (hex)    00a0: 95 0F B1 02 85 13 09 22  95 16 B1 02 85 14 06 05  
                            Raw Descriptor (hex)    00b0: FF 09 20 95 10 B1 02 85  15 09 21 95 2C B1 02 06  
                            Raw Descriptor (hex)    00c0: 80 FF 85 80 09 20 95 06  B1 02 85 81 09 21 95 06  
                            Raw Descriptor (hex)    00d0: B1 02 85 82 09 22 95 05  B1 02 85 83 09 23 95 01  
                            Raw Descriptor (hex)    00e0: B1 02 85 84 09 24 95 04  B1 02 85 85 09 25 95 06  
                            Raw Descriptor (hex)    00f0: B1 02 85 86 09 26 95 06  B1 02 85 87 09 27 95 23  
                            Raw Descriptor (hex)    0100: B1 02 85 88 09 28 95 22  B1 02 85 89 09 29 95 02  
                            Raw Descriptor (hex)    0110: B1 02 85 90 09 30 95 05  B1 02 85 91 09 31 95 03  
                            Raw Descriptor (hex)    0120: B1 02 85 92 09 32 95 03  B1 02 85 93 09 33 95 0C  
                            Raw Descriptor (hex)    0130: B1 02 85 A0 09 40 95 06  B1 02 85 A1 09 41 95 01  
                            Raw Descriptor (hex)    0140: B1 02 85 A2 09 42 95 01  B1 02 85 A3 09 43 95 30  
                            Raw Descriptor (hex)    0150: B1 02 85 A4 09 44 95 0D  B1 02 85 A5 09 45 95 15  
                            Raw Descriptor (hex)    0160: B1 02 85 A6 09 46 95 15  B1 02 85 F0 09 47 95 3F  
                            Raw Descriptor (hex)    0170: B1 02 85 F1 09 48 95 3F  B1 02 85 F2 09 49 95 0F  
                            Raw Descriptor (hex)    0180: B1 02 85 A7 09 4A 95 01  B1 02 85 A8 09 4B 95 01  
                            Raw Descriptor (hex)    0190: B1 02 85 A9 09 4C 95 08  B1 02 85 AA 09 4E 95 01  
                            Raw Descriptor (hex)    01a0: B1 02 85 AB 09 4F 95 39  B1 02 85 AC 09 50 95 39  
                            Raw Descriptor (hex)    01b0: B1 02 85 AD 09 51 95 0B  B1 02 85 AE 09 52 95 01  
                            Raw Descriptor (hex)    01c0: B1 02 85 AF 09 53 95 02  B1 02 85 B0 09 54 95 3F  
                            Raw Descriptor (hex)    01d0: B1 02 85 B1 09 55 95 02  B1 02 85 B2 09 56 95 02  
                            Raw Descriptor (hex)    01e0: B1 02 C0 
                        Parsed Report Descriptor:   
                              Usage Page    (Generic Desktop) 
                              Usage (GamePad)    
                                  Collection (Application)    
                                    ReportID................    (1)  
                                    Usage (X)    
                                    Usage (Y)    
                                    Usage (Z)    
                                    Usage (Rz)    
                                    Logical Minimum.........    (0)  
                                    Logical Maximum.........    (255)  
                                    Report Size.............    (8)  
                                    Report Count............    (4)  
                                    Input...................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Bitfield) 
                                    Usage (Hat Switch)    
                                    Logical Minimum.........    (0)  
                                    Logical Maximum.........    (7)  
                                    Physical Minimum........    (0)  
                                    Physical Maximum........    (315)  
                                    Unit....................    (20)  
                                    Report Size.............    (4)  
                                    Report Count............    (1)  
                                    Input...................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, Null State, Bitfield) 
                                    Unit....................    (0)  
                                    Usage Page    (Button) 
                                    Usage Minimum...........    (1)  
                                    Usage Maximum...........    (14)  
                                    Logical Minimum.........    (0)  
                                    Logical Maximum.........    (1)  
                                    Report Size.............    (1)  
                                    Report Count............    (14)  
                                    Input...................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Bitfield) 
                                    Usage Page    (Vendor defined 0) 
                                    Usage 32 (0x20)    
                                    Report Size.............    (6)  
                                    Report Count............    (1)  
                                    Logical Minimum.........    (0)  
                                    Logical Maximum.........    (127)  
                                    Input...................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Bitfield) 
                                    Usage Page    (Generic Desktop) 
                                    Usage (Rx)    
                                    Usage (Ry)    
                                    Logical Minimum.........    (0)  
                                    Logical Maximum.........    (255)  
                                    Report Size.............    (8)  
                                    Report Count............    (2)  
                                    Input...................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Bitfield) 
                                    Usage Page    (Vendor defined 0) 
                                    Usage 33 (0x21)    
                                    Report Count............    (54)  
                                    Input...................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Bitfield) 
                                    ReportID................    (5)  
                                    Usage 34 (0x22)    
                                    Report Count............    (31)  
                                    Output..................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (4)  
                                    Usage 35 (0x23)    
                                    Report Count............    (36)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (2)  
                                    Usage 36 (0x24)    
                                    Report Count............    (36)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (8)  
                                    Usage 37 (0x25)    
                                    Report Count............    (3)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (16)  
                                    Usage 38 (0x26)    
                                    Report Count............    (4)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (17)  
                                    Usage 39 (0x27)    
                                    Report Count............    (2)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (18)  
                                    Usage Page    (Vendor defined 2) 
                                    Usage 33 (0x21)    
                                    Report Count............    (15)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (19)  
                                    Usage 34 (0x22)    
                                    Report Count............    (22)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (20)  
                                    Usage Page    (Vendor defined 5) 
                                    Usage 32 (0x20)    
                                    Report Count............    (16)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (21)  
                                    Usage 33 (0x21)    
                                    Report Count............    (44)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    Usage Page    (Vendor defined 128) 
                                    ReportID................    (128)  
                                    Usage 32 (0x20)    
                                    Report Count............    (6)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (129)  
                                    Usage 33 (0x21)    
                                    Report Count............    (6)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (130)  
                                    Usage 34 (0x22)    
                                    Report Count............    (5)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (131)  
                                    Usage 35 (0x23)    
                                    Report Count............    (1)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (132)  
                                    Usage 36 (0x24)    
                                    Report Count............    (4)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (133)  
                                    Usage 37 (0x25)    
                                    Report Count............    (6)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (134)  
                                    Usage 38 (0x26)    
                                    Report Count............    (6)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (135)  
                                    Usage 39 (0x27)    
                                    Report Count............    (35)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (136)  
                                    Usage 40 (0x28)    
                                    Report Count............    (34)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (137)  
                                    Usage 41 (0x29)    
                                    Report Count............    (2)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (144)  
                                    Usage 48 (0x30)    
                                    Report Count............    (5)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (145)  
                                    Usage 49 (0x31)    
                                    Report Count............    (3)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (146)  
                                    Usage 50 (0x32)    
                                    Report Count............    (3)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (147)  
                                    Usage 51 (0x33)    
                                    Report Count............    (12)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (160)  
                                    Usage 64 (0x40)    
                                    Report Count............    (6)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (161)  
                                    Usage 65 (0x41)    
                                    Report Count............    (1)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (162)  
                                    Usage 66 (0x42)    
                                    Report Count............    (1)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (163)  
                                    Usage 67 (0x43)    
                                    Report Count............    (48)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (164)  
                                    Usage 68 (0x44)    
                                    Report Count............    (13)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (165)  
                                    Usage 69 (0x45)    
                                    Report Count............    (21)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (166)  
                                    Usage 70 (0x46)    
                                    Report Count............    (21)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (240)  
                                    Usage 71 (0x47)    
                                    Report Count............    (63)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (241)  
                                    Usage 72 (0x48)    
                                    Report Count............    (63)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (242)  
                                    Usage 73 (0x49)    
                                    Report Count............    (15)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (167)  
                                    Usage 74 (0x4a)    
                                    Report Count............    (1)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (168)  
                                    Usage 75 (0x4b)    
                                    Report Count............    (1)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (169)  
                                    Usage 76 (0x4c)    
                                    Report Count............    (8)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (170)  
                                    Usage 78 (0x4e)    
                                    Report Count............    (1)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (171)  
                                    Usage 79 (0x4f)    
                                    Report Count............    (57)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (172)  
                                    Usage 80 (0x50)    
                                    Report Count............    (57)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (173)  
                                    Usage 81 (0x51)    
                                    Report Count............    (11)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (174)  
                                    Usage 82 (0x52)    
                                    Report Count............    (1)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (175)  
                                    Usage 83 (0x53)    
                                    Report Count............    (2)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (176)  
                                    Usage 84 (0x54)    
                                    Report Count............    (63)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (177)  
                                    Usage 85 (0x55)    
                                    Report Count............    (2)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                    ReportID................    (178)  
                                    Usage 86 (0x56)    
                                    Report Count............    (2)  
                                    Feature.................   (Data, Variable, Absolute, No Wrap, Linear, Preferred State, No Null Position, Nonvolatile, Bitfield) 
                                  End Collection     
                Endpoint 0x84 - Interrupt Input   
                    Address:   0x84  (IN)
                    Attributes:   0x03  (Interrupt no synchronization data endpoint)
                    Max Packet Size:   64
                    Polling Interval:   5 ms
                Endpoint 0x03 - Interrupt Output   
                    Address:   0x03  (OUT)
                    Attributes:   0x03  (Interrupt no synchronization data endpoint)
                    Max Packet Size:   64
                    Polling Interval:   5 ms

drivers/hid/hid-sony.c

  • The default descriptor doesn't provide mapping for the accelerometers or orientation sensors. This fixed descriptor maps the accelerometers to usage values 0x40, 0x41 and 0x42 and maps the orientation sensors to usage values 0x43, 0x44 and 0x45.