|
From: Nikolai K. <sp...@gm...> - 2010-09-27 08:23:04
|
On 09/27/2010 11:50 AM, Ludovic Rousseau wrote: > I need to get the Report Count from my HID device to know the size I > need to use in hid_write(). The hidapi does not provide anything like > that. I could hardcode the size but I don't like that. > > lsusb -v gives me the information I need. It also looks like libhid > can do that with the ReportCount field of the HIDParser struct. > My problem is that both lsusb (from usbutils) and libhid are GPL and > not LGPL. So I can't (legally) use them for my project. > > Do you know a LGPL or BSD licensed HID parser? When I was starting my own HID parser I did a research and didn't find anything except libhid, now there is hidapi and that's all I know about. However, I could maybe help you write your own for your specific purposes - it's not that hard. What information do you need, exactly? Sincerely, Nick |