-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 23 Jul 2003 07:28 am, William R. Dieter wrote: > I admit I am not very familiar with USB details. I did look through the > USB spec. and saw that low speed devices use 8 byte packets, so I am > guessing this is a low speed device. The USB HID specification and the > Linux HID documentation I found talked a lot about reports and > endpoints, none of which are mentioned at all in the PIC documentation. > It is not clear to me how the 8 byte packets in the PIC documentation > map onto reports in hiddev API. Do I need to write my own kernel level > driver that works at a lower USB layer than hiddev? Probably not, although it helps enormously to know what you are actually trying to do.
> Also I came across a small problem when trying the HIDIOCAPPLICATION > ioctl example. The example code calls the ioctl and tests the return > value like this: > > appl = ioctl(fd, HIDIOCAPPLICATION, yalv); > if (appl > 0) { > printf("Application %i is 0x%x ", yalv, appl); > /* The magic values come from various usage table specs */ > switch ( appl >> 16) > [...] Probably I blundered, and should have made appl unsigned. However you have messed up my code. Does it run if you use the code unmodified? Brad -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE/HvItW6pHgIdAuOMRAvJjAJ9puuibv3dbUJ4Gpk6I4quYtlgzoQCgrrsP 7AyjotPonTF44U9rdydZG6k= =p5QF -----END PGP SIGNATURE----- ------------------------------------------------------- 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