Re: Report ID problem with HID-RAW interface usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/30/2010 07:14 AM, Amit Nagal wrote:

sorry my mistake :

what i wanted to ask was ioctl with which application can get
input / output / feature<REPORT ID>  and<  REPORT LEN>  .

Thanx&  Regards
Amit Nagal
Amit,

There is a new ioctl() staged for the new merge window which will get and set feature reports. It is used like this:

        /* Set Feature */
        buf[0] = 0x9; /* Report Number */
        buf[1] = 0xff; /* data */
        buf[2] = 0xff;
        buf[3] = 0xff;
        res = ioctl(fd, HIDIOCSFEATURE(4), buf);

Is that what you're asking for, or are you asking for something which will tell you which reports are _available_ on the device, and what their lengths are? There is currently no way to report which reports are _available_. As Jiri said, HIDRAW does not do any parsing of the report descriptor. All data is passed "raw" from the user application to the device.

If you know what type of device you are talking to, then you shouldn't really need to parse the descriptor in software, because you'll know what the device supports, right?

Alan.

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux