From 97125a6c0c28a53d140c877bfa5ddde1c5fb00d2 Mon Sep 17 00:00:00 2001 From: Marc Riera Date: Tue, 11 Jul 2023 00:02:08 +0200 Subject: [PATCH] Add USB descriptor for DGOC-44U --- .../dgoc44u_standard-descriptor.txt | 50 +++++++++++++++++++ content/controllers/usb/dgoc44u/_index.md | 4 +- 2 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 content/controllers/usb/descriptors/dgoc44u_standard-descriptor.txt diff --git a/content/controllers/usb/descriptors/dgoc44u_standard-descriptor.txt b/content/controllers/usb/descriptors/dgoc44u_standard-descriptor.txt new file mode 100644 index 0000000..ad753ac --- /dev/null +++ b/content/controllers/usb/descriptors/dgoc44u_standard-descriptor.txt @@ -0,0 +1,50 @@ +0x12, // bLength +0x01, // bDescriptorType (Device) +0x10, 0x01, // bcdUSB 1.10 +0x00, // bDeviceClass +0x00, // bDeviceSubClass +0x00, // bDeviceProtocol +0x08, // bMaxPacketSize0 8 +0xE4, 0x0A, // idVendor 0x0AE4 +0x03, 0x00, // idProduct 0x03 +0x00, 0x01, // bcdDevice 1.00 +0x01, // iManufacturer (String Index) "TAITO" +0x02, // iProduct (String Index) "電車でGO! コントローラ USB版" +0x03, // iSerialNumber (String Index) "TCPP20009" +0x01, // bNumConfigurations 1 + +0x09, // bLength +0x02, // bDescriptorType (Configuration) +0x22, 0x00, // wTotalLength 34 +0x01, // bNumInterfaces 1 +0x01, // bConfigurationValue +0x00, // iConfiguration (String Index) +0xA0, // bmAttributes Remote Wakeup +0x0A, // bMaxPower 20mA + +0x09, // bLength +0x04, // bDescriptorType (Interface) +0x00, // bInterfaceNumber 0 +0x00, // bAlternateSetting +0x01, // bNumEndpoints 1 +0x03, // bInterfaceClass +0x00, // bInterfaceSubClass +0x00, // bInterfaceProtocol +0x00, // iInterface (String Index) + +0x09, // bLength +0x21, // bDescriptorType (HID) +0x10, 0x01, // bcdHID 1.10 +0x21, // bCountryCode +0x01, // bNumDescriptors +0x22, // bDescriptorType[0] (HID) +0x3F, 0x00, // wDescriptorLength[0] 63 + +0x07, // bLength +0x05, // bDescriptorType (Endpoint) +0x81, // bEndpointAddress (IN/D2H) +0x03, // bmAttributes (Interrupt) +0x08, 0x00, // wMaxPacketSize 8 +0x14, // bInterval 20 (unit depends on device speed) + +// 52 bytes diff --git a/content/controllers/usb/dgoc44u/_index.md b/content/controllers/usb/dgoc44u/_index.md index 8e73ed3..2adde4c 100644 --- a/content/controllers/usb/dgoc44u/_index.md +++ b/content/controllers/usb/dgoc44u/_index.md @@ -10,12 +10,12 @@ Internally, it is a HID-compliant joystick with two axes and 6 buttons (the hand | | | |-----------------------------|-------------------------------------------| -| **Product name** | 電車でGO! コントローラ USB版 | +| **Product name** | 電車でGO! コントローラ USB版 | | **Manufacturer** | TAITO | | **Vendor ID** | 0x0AE4 | | **Product ID** | 0x0003 | | **Serial number** | TCPP20009 | -| **USB standard descriptor** | Unavailable | +| **USB standard descriptor** | [Link](/controllers/usb/descriptors/dgoc44u_standard-descriptor.txt) | | **HID report descriptor** | [Link](/controllers/usb/descriptors/dgoc44u_hid-report-descriptor.txt) | The controller sends reports to the host (PC) formed by 6 bytes: