-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
1,799 additions
and
1,448 deletions.
There are no files selected for viewing
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
Device Descriptor Fields: | ||
|
||
bLength 0x12 | ||
bDescriptorType 0x01 | ||
bcdUSB 0x0110 (USB spec. 01.10) | ||
bDeviceClass 0x09 (Hub) | ||
bDeviceSubClass 0x00 | ||
bDeviceProtocol 0x00 | ||
bMaxPacketSize0 0x08 | ||
idVendor 0x045E (unknown) | ||
idProduct 0x001C | ||
bcdDevice 0x0500 (release 05.00) | ||
iManufacturer 0x00 | ||
iProduct 0x00 | ||
iSerialNumber 0x00 | ||
bNumConfigurations 0x01 (1) | ||
|
||
Configuration Descriptor, Index 0x00 | ||
|
||
bLength 0x09 | ||
bDescriptorType 0x02 | ||
wTotalLength 0x0019 (25) | ||
bNumInterfaces 0x01 (1) | ||
bConfigurationValue 0x01 | ||
iConfiguration 0x00 | ||
bmAttributes 0xA0 (bus powered - remote wakeup) | ||
MaxPower 0x20 (64 mA) | ||
|
||
Interface Descriptor (Number 0x00, Alternate Setting 0x00) | ||
|
||
bLength 0x09 | ||
bDescriptorType 0x04 | ||
bInterfaceNumber 0x00 | ||
bAlternateSetting 0x00 | ||
bNumEndpoints 0x01 | ||
bInterfaceClass 0x09 (USB specified device class) | ||
bInterfaceSubClass 0x00 | ||
bInterfaceProtocol 0x00 (not vendor or class specific) | ||
iInterface 0x00 | ||
|
||
Endpoint Descriptor 0x81 | ||
|
||
bLength 0x07 | ||
bDescriptorType 0x05 | ||
bEndpointAddress 0x81 (ep #1, IN) | ||
bmAttributes 0x03 (Transfer Type : Interrupt) | ||
wMaxPacketSize 0x0001 | ||
bInterval 0xFF (255 milliseconds) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
Device Descriptor Fields: | ||
|
||
bLength 0x12 | ||
bDescriptorType 0x01 | ||
bcdUSB 0x0110 (USB spec. 01.10) | ||
bDeviceClass 0x00 (ifc's specify own) | ||
bDeviceSubClass 0x00 | ||
bDeviceProtocol 0x00 | ||
bMaxPacketSize0 0x08 | ||
idVendor 0x045E (unknown) | ||
idProduct 0x0280 | ||
bcdDevice 0x000E (release 00.0E) | ||
iManufacturer 0x00 | ||
iProduct 0x00 | ||
iSerialNumber 0x00 | ||
bNumConfigurations 0x01 (1) | ||
|
||
Configuration Descriptor, Index 0x00 | ||
|
||
bLength 0x09 | ||
bDescriptorType 0x02 | ||
wTotalLength 0x0020 (32) | ||
bNumInterfaces 0x01 (1) | ||
bConfigurationValue 0x01 | ||
iConfiguration 0x00 | ||
bmAttributes 0x80 (bus powered) | ||
MaxPower 0x1E (60 mA) | ||
|
||
Interface Descriptor (Number 0x00, Alternate Setting 0x00) | ||
|
||
bLength 0x09 | ||
bDescriptorType 0x04 | ||
bInterfaceNumber 0x00 | ||
bAlternateSetting 0x00 | ||
bNumEndpoints 0x02 | ||
bInterfaceClass 0x08 (USB specified device class) | ||
bInterfaceSubClass 0x42 | ||
bInterfaceProtocol 0x50 (class specific) | ||
iInterface 0x00 | ||
|
||
Endpoint Descriptor 0x81 | ||
|
||
bLength 0x07 | ||
bDescriptorType 0x05 | ||
bEndpointAddress 0x81 (ep #1, IN) | ||
bmAttributes 0x02 (Transfer Type : Bulk) | ||
wMaxPacketSize 0x0040 | ||
bInterval 0x00 (0 milliseconds) | ||
|
||
Endpoint Descriptor 0x02 | ||
|
||
bLength 0x07 | ||
bDescriptorType 0x05 | ||
bEndpointAddress 0x02 (ep #2, OUT) | ||
bmAttributes 0x02 (Transfer Type : Bulk) | ||
wMaxPacketSize 0x0040 | ||
bInterval 0x00 (0 milliseconds) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
Device Descriptor Fields: | ||
|
||
bLength 0x12 | ||
bDescriptorType 0x01 | ||
bcdUSB 0x0110 (USB spec. 01.10) | ||
bDeviceClass 0x00 (ifc's specify own) | ||
bDeviceSubClass 0x00 | ||
bDeviceProtocol 0x00 | ||
bMaxPacketSize0 0x40 | ||
idVendor 0x045E (unknown) | ||
idProduct 0x0202 | ||
bcdDevice 0x0100 (release 01.00) | ||
iManufacturer 0x00 | ||
iProduct 0x00 | ||
iSerialNumber 0x00 | ||
bNumConfigurations 0x01 (1) | ||
|
||
Configuration Descriptor, Index 0x00 | ||
|
||
bLength 0x09 | ||
bDescriptorType 0x02 | ||
wTotalLength 0x0020 (32) | ||
bNumInterfaces 0x01 (1) | ||
bConfigurationValue 0x01 | ||
iConfiguration 0x00 | ||
bmAttributes 0x80 (bus powered) | ||
MaxPower 0x32 (100 mA) | ||
|
||
Interface Descriptor (Number 0x00, Alternate Setting 0x00) | ||
|
||
bLength 0x09 | ||
bDescriptorType 0x04 | ||
bInterfaceNumber 0x00 | ||
bAlternateSetting 0x00 | ||
bNumEndpoints 0x02 | ||
bInterfaceClass 0x58 (USB specified device class) | ||
bInterfaceSubClass 0x42 | ||
bInterfaceProtocol 0x00 (not vendor or class specific) | ||
iInterface 0x00 | ||
|
||
Endpoint Descriptor 0x82 | ||
|
||
bLength 0x07 | ||
bDescriptorType 0x05 | ||
bEndpointAddress 0x82 (ep #2, IN) | ||
bmAttributes 0x03 (Transfer Type : Interrupt) | ||
wMaxPacketSize 0x0020- Must be full speed device | ||
bInterval 0x04 (4 milliseconds) | ||
|
||
Endpoint Descriptor 0x02 | ||
|
||
bLength 0x07 | ||
bDescriptorType 0x05 | ||
bEndpointAddress 0x02 (ep #2, OUT) | ||
bmAttributes 0x03 (Transfer Type : Interrupt) | ||
wMaxPacketSize 0x0020- Must be full speed device | ||
bInterval 0x04 (4 milliseconds) |
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,159 @@ | ||
0501 Usage Page (Generic Desktop) | ||
0905 Usage (Game Pad) | ||
A101 Collection (Application) | ||
|
||
0501 Usage Page (Generic Desktop) | ||
093A Usage (Counted Buffer) ;XXX | ||
A102 Collection (Logical) | ||
|
||
; padding | ||
7508 Report Size (8) | ||
9501 Report Count (1) | ||
8101 Input (Constant) | ||
|
||
; byte count | ||
7508 Report Size (8) | ||
9501 Report Count (1) | ||
0501 Usage Page (Generic Desktop) | ||
093B Usage (Byte Count) ;XXX | ||
8101 Input (Constant) | ||
|
||
; D-pad | ||
0501 Usage Page (Generic Desktop) | ||
0901 Usage (Pointer) | ||
A100 Collection (Physical) | ||
7501 Report Size (1) | ||
1500 Logical Minimum (0) | ||
2501 Logical Maximum (1) | ||
3500 Physical Minimum (0) | ||
4501 Physical Maximum (1) | ||
9504 Report Count (4) | ||
0501 Usage Page (Generic Desktop) | ||
0990 Usage (D-pad Up) | ||
0991 Usage (D-pad Down) | ||
0993 Usage (D-pad Left) | ||
0992 Usage (D-pad Right) | ||
8102 Input (Data,Variable,Absolute) | ||
C0 End Collection | ||
|
||
; start, back, stick press | ||
7501 Report Size (1) | ||
1500 Logical Minimum (0) | ||
2501 Logical Maximum (1) | ||
3500 Physical Minimum (0) | ||
4501 Physical Maximum (1) | ||
9504 Report Count (4) | ||
0509 Usage Page (Button) | ||
1907 Usage Minimum (Button 7) | ||
290A Usage Maximum (Button 10) | ||
8102 Input (Data,Variable,Absolute) | ||
|
||
; reserved | ||
7501 Report Size (1) | ||
9508 Report Count (8) | ||
8101 Input (Constant) | ||
|
||
; analog buttons | ||
7508 Report Size (8) | ||
1500 Logical Minimum (0) | ||
26FF00 Logical Maximum (255) | ||
3500 Physical Minimum (0) | ||
46FF00 Physical Maximum (255) | ||
9506 Report Count (6) | ||
0509 Usage Page (Button) | ||
1901 Usage Minimum (Button 1) | ||
2906 Usage Minimum (Button 6) | ||
8102 Input (Data,Variable,Absolute) | ||
|
||
; triggers | ||
7508 Report Size (8) | ||
1500 Logical Minimum (0) | ||
26FF00 Logical Maximum (255) | ||
3500 Physical Minimum (0) | ||
46FF00 Physical Maximum (255) | ||
9502 Report Count (2) | ||
0501 Usage Page (Generic Desktop) | ||
0932 Usage (Z) | ||
0935 Usage (Rz) | ||
8102 Input (Data,Variable,Absolute) | ||
|
||
; sticks | ||
7510 Report Size (16) | ||
160080 Logical Minimum (-32768) | ||
26FF7F Logical Maximum (32767) | ||
360080 Physical Minimum (-32768) | ||
46FF7F Physical Maximum (32767) | ||
|
||
0501 Usage Page (Generic Desktop) | ||
0901 Usage (Pointer) | ||
A100 Collection (Physical) | ||
9502 Report Count (2) | ||
0501 Usage Page (Generic Desktop) | ||
0930 Usage (X) | ||
0931 Usage (Y) ;north positive | ||
8102 Input (Data,Variable,Absolute) | ||
C0 End Collection | ||
|
||
0501 Usage Page (Generic Desktop) | ||
0901 Usage (Pointer) | ||
A100 Collection (Physical) | ||
9502 Report Count (2) | ||
0501 Usage Page (Generic Desktop) | ||
0933 Usage (Rx) | ||
0934 Usage (Ry) ;north positive | ||
8102 Input (Data,Variable,Absolute) | ||
C0 End Collection | ||
|
||
C0 End Collection | ||
|
||
0501 Usage Page (Generic Desktop) | ||
093A Usage (Counted Buffer) ;XXX | ||
A102 Collection (Logical) | ||
|
||
; padding | ||
7508 Report Size (8) | ||
9501 Report Count (1) | ||
9101 Output (Constant) | ||
|
||
; byte count | ||
7508 Report Size (8) | ||
9501 Report Count (1) | ||
0501 Usage Page (Generic Desktop) | ||
093B Usage (Byte Count) ;XXX | ||
9101 Output (Constant) | ||
|
||
; padding | ||
7508 Report Size (8) | ||
9501 Report Count (1) | ||
9101 Output (Constant) | ||
|
||
; left actuator | ||
7508 Report Size (8) | ||
1500 Logical Minimum (0) | ||
26FF00 Logical Maximum (255) | ||
3500 Physical Minimum (0) | ||
46FF00 Physical Maximum (255) | ||
9501 Report Count (1) | ||
0600FF Usage Page (vendor-defined) | ||
0901 Usage (1) | ||
9102 Output (Data,Variable,Absolute) | ||
|
||
; padding | ||
7508 Report Size (8) | ||
9501 Report Count (1) | ||
9101 Output (Constant) | ||
|
||
; right actuator | ||
7508 Report Size (8) | ||
1500 Logical Minimum (0) | ||
26FF00 Logical Maximum (255) | ||
3500 Physical Minimum (0) | ||
46FF00 Physical Maximum (255) | ||
9501 Report Count (1) | ||
0600FF Usage Page (vendor-defined) | ||
0902 Usage (2) | ||
9102 Output (Data,Variable,Absolute) | ||
|
||
C0 End Collection | ||
|
||
C0 End Collection |
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
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
Oops, something went wrong.