logo资料库

HID 免驱 描述符.doc

第1页 / 共1页
资料共1页,全文预览结束
你还在为你的 USB 设备需要在各种系统上装驱动而烦恼么?你可以试试下面这些个描述 符。我已经在 linux。Windows,和 Android 等主流系统上测试过了。 u8 DeviceDescriptor[JOYSTICK_SIZ_DEVICE_DESC] = { 0x12, USB_DEVICE_DESCRIPTOR_TYPE, 0x00, 0x01, 0x00,0x00,0x00,0x40, 0x86,0x1d,0x10,0xe0, 0x00,0x32,0x01,0x02, 0x03,0x01 } u8 ConfigDescriptor[JOYSTICK_SIZ_CONFIG_DESC] = { 0x09,0x02,0x29,0x00,0x01,0x01,0x04,0x80,0x32,0x09,0x04,0x00,0x00,0x02,0x03,0x00, 0x00,0x00,0x09,0x21,0x00,0x01,0x00,0x01,0x22,0x25,0x00,0x07,0x05,0x81,0x03,0x20, 0x00,0x01,0x07,0x05,0x02,0x03,0x20,0x00,0x01 } U8 ReportDescriptor[JOYSTICK_SIZ_REPORT_DESC] = { 0x06,0xa0, 0xFF,0x09, 0x01, 0xA1, 0x01, 0x09, 0x01 , 0x15, 0x00, 0x26, 0xff, 0x00, 0x75, 0x08, 0x95, 0x20, 0x81, 0x02, 0x09, 0x02, 0x75, 0x08, 0x95, 0x20, 0x91,0x02, 0x09,0x03, 0x75,0x08, 0x95, 0x05, 0xb1, 0x02, 0xC0 } 大胆的试试吧。
分享到:
收藏