问题描述
我想将嵌入式应用程序设置为HID设备,通过单独的过程控制HID接口以允许与PC的动态连接。似乎有很多人已经做到了,但我想做的是:
I want to set up my embedded application as a HID device, with a separate process controlling the HID interface to allow dynamic connections to a PC. There seems to be many people out there that have done it, but I would like to do is:
a)了解如何配置我的构建(Freescale i.MX Linux使用ltib)包括USB API并包含在我的构建(即g_hid.h)中。
b)我在哪里可以找到一个示例应用程序,它会像鼠标一样移动屏幕来演示操作HID?
a) Understand how to configure my build (Freescale i.MX Linux using ltib) to include the USB APIs and includes in my build (ie g_hid.h).
b) Where can I find an example application which does something like move the mouse about the screen to demonstrate the operation of the HID?
Thanx为您的帮助!
Thanx for your help!
推荐答案
是如何操作鼠标HID的示例。
http://lxr.linux.no/#linux+v3.3/Documentation/usb/gadget_hid.txt is an example of how to operate a mouse HID.
这篇关于寻找例如嵌入式Linux HID设备代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!