Using the hiddev ioctl() API I can write/read a 32-bit data
(my test shows only low-7 bits works,although hiddev_usage_ref.value 's definition is __s32.I havn't found the reason yet) using
ioctl(**,HIDIOCSUSAGE,**) ,*HIDIOCSREPORT,*HIDIOCGREPORT*,*HIDIOCGUSAGE*;
Does it exist one method to write/read sevral bytes one time only using hiddev driver's API?
Tell me if not exist,then I decided to write a driver additional for transferring data.
Thanks!
Qiu
From: Brad Hards <[EMAIL PROTECTED]>[EMAIL PROTECTED]
To: Qiu ZhongLe <[EMAIL PROTECTED]>,
Subject: Re: [Linux-usb-users] Do I need write a device driver?
On Wed, 23 Jul 2003 12:04 pm, Qiu ZhongLe wrote:wrote
> ?When I plugged in My device(HID-class),the system(version2.4.18) can
> detect it,and I can find my device at "/proc/bus/usb/devices" ,I even
> a program which can open it and print thedifference
> vendor and product information.But I do need to exchange data between
> device and host,
> I think I should use "usb_submit_urb()" to transfer data.
Why? What is the device? What is the intended usage? That makes a
to the API you should use.your
> ??o I need to write a device driver? Perhaps, but probably not in kernel space.
> ??an I read data and write data without my own driver? I mean ,maybe I
> only need write
> a read/write function.
Yes, the input API or hiddev API may be suitable. However it depends on
device (in particular, the intended usage, and the HID Application) andwhat
you need to do.
Brad
_________________________________________________________________
免费下载 MSN Explorer: http://explorer.msn.com/lccn/
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
