Skip to content

Instantly share code, notes, and snippets.

@tmk
Created August 31, 2021 09:09
Show Gist options
  • Save tmk/0ef11df08b783488f03fd4572d1c3bc3 to your computer and use it in GitHub Desktop.
Save tmk/0ef11df08b783488f03fd4572d1c3bc3 to your computer and use it in GitHub Desktop.
APEM HF11S10U - 068e:0105
APEM HF11S10U
https://www.apem.com/int/hf-series-42.html
https://github.com/felis/USB_Host_Shield_2.0/issues/661#issuecomment-908843534
//////////////////////////////////////////////////////////////////////
// USB_desc_dump
// Address: 01
// Lowspeed: 00
// Devicer dump:
12 01 00 02 00 00 00 08 8E 06 05 01 00 01 01 02
00 01
// Device:
bLength: 12
bDescriptorType: 01
bcdUSB: 0200
bDeviceClass: 00
bDeviceSubClass: 00
bDeviceProtocol: 00
bMaxPacketSize0: 08
idVendor: 068E
idProduct: 0105
bcdDevice: 0100
iManufacturer: 01
iProduct: 02
iSerialNumber: 00
bNumConfigurations: 01
// String Zero: len: 04
// 04 03 09 04
// LangId: 0409
// iManufacturer: String1(0409): len: 18
// 18 03 43 00 48 00 20 00 50 00 72 00 6F 00 64 00
// 75 00 63 00 74 00 73 00
// CH Products
// iProduct: String2(0409): len: 42
// 42 03 41 00 50 00 45 00 4D 00 20 00 48 00 46 00
// 20 00 4A 00 6F 00 79 00 73 00 74 00 69 00 63 00
// 6B 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00
// 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00
// 20 00
// APEM HF Joystick
// Config0 dump: len: 0042
09 02 42 00 02 01 00 80 FA 09 04 00 00 02 03 00
00 04 09 21 11 01 21 01 22 33 00 07 05 82 03 40
00 0A 07 05 01 03 40 00 0A 09 04 01 00 01 03 00
00 03 09 21 11 01 21 01 22 34 00 07 05 84 03 08
00 0A
// Config:
bLength: 09
bDescriptorType: 02
wTotalLength: 0042
bNumInterfaces: 02
bConfigurationValue: 01
iConfiguration: 00
bmAttributes: 80
bMaxPower: FA
// Interface0.0:
bLength: 09
bDescriptorType: 04
bInterfaceNumber: 00
bAlternateSetting: 00
bNumEndpoints: 02
bInterfaceClass: 03
bInterfaceSubClass: 00
bInterfaceProtocol: 00
iInterface: 04
// iInterface: String4(0409): len: 42
// 42 03 48 00 46 00 20 00 4A 00 6F 00 79 00 73 00
// 74 00 69 00 63 00 6B 00 20 00 20 00 20 00 20 00
// 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00
// 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00
// 20 00
// HF Joystick
// HID:
bLength: 09
bDescriptorType: 21
bcdHID: 0111
bCountryCode: 21
bNumDescriptors: 01
bDescrType: 22
wDescriptorLength: 0033
// Report0 dump: len: 0033
05 01 09 04 A1 01 05 01 09 01 A1 00 09 30 09 31
15 00 26 FF 0F 75 10 95 02 81 02 09 00 95 01 81
02 06 00 FF 09 01 15 00 26 FF 00 75 08 95 40 91
02 C0 C0
// Report:
Usage Page Gen Desktop Ctrls(01)
Usage Game Pad
Collection Application
Usage Page Gen Desktop Ctrls(01)
Usage Pointer
Collection Physical
Usage X
Usage Y
Logical Min(00)
Logical Max(FF0F)
Report Size(10)
Report Count(02)
Input(00000010)
Usage Undef
Report Count(01)
Input(00000010)
Usage Page Undef(00)
Usage
Logical Min(00)
Logical Max(FF00)
Report Size(08)
Report Count(40)
Output(00000010)
End Collection
End Collection
// Endpoint:
bLength: 07
bDescriptorType: 05
bEndpointAddress: 82
bmAttributes: 03
wMaxPacketSize: 0040
bInterval: 0A
// Endpoint:
bLength: 07
bDescriptorType: 05
bEndpointAddress: 01
bmAttributes: 03
wMaxPacketSize: 0040
bInterval: 0A
// Interface1.0:
bLength: 09
bDescriptorType: 04
bInterfaceNumber: 01
bAlternateSetting: 00
bNumEndpoints: 01
bInterfaceClass: 03
bInterfaceSubClass: 00
bInterfaceProtocol: 00
iInterface: 03
// iInterface: String3(0409): len: 42
// 42 03 41 00 50 00 45 00 4D 00 20 00 4D 00 6F 00
// 75 00 73 00 65 00 20 00 20 00 20 00 20 00 20 00
// 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00
// 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00
// 20 00
// APEM Mouse
// HID:
bLength: 09
bDescriptorType: 21
bcdHID: 0111
bCountryCode: 21
bNumDescriptors: 01
bDescrType: 22
wDescriptorLength: 0034
// Report0 dump: len: 0034
05 01 09 02 A1 01 09 01 A1 00 05 09 19 01 29 03
15 00 25 01 95 03 75 01 81 02 95 01 75 05 81 01
05 01 09 30 09 31 09 38 15 81 25 7F 75 08 95 03
81 06 C0 C0
// Report:
Usage Page Gen Desktop Ctrls(01)
Usage Mouse
Collection Application
Usage Pointer
Collection Physical
Usage Page Button(09)
Usage Min(01)
Usage Max(03)
Logical Min(00)
Logical Max(01)
Report Count(03)
Report Size(01)
Input(00000010)
Report Count(01)
Report Size(05)
Input(00000001)
Usage Page Gen Desktop Ctrls(01)
Usage X
Usage Y
Usage Wheel
Logical Min(81)
Logical Max(7F)
Report Size(08)
Report Count(03)
Input(00000110)
End Collection
End Collection
// Endpoint:
bLength: 07
bDescriptorType: 05
bEndpointAddress: 84
bmAttributes: 03
wMaxPacketSize: 0008
bInterval: 0A
// Parse data here: http://eleccelerator.com/usbdescreqparser/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment