Thread (8 messages) 8 messages, 2 authors, 2010-10-04

Re: [PATCH v4 1/2] HID: Add Support for Setting and Getting Feature Reports from hidraw

From: Alan Ott <hidden>
Date: 2010-10-02 02:24:10

Possibly related (same subject, not in this thread)

On 10/01/2010 08:00 PM, Antonio Ospite wrote:
But again, I haven't checked yet what the specs say about byte 0 in the
returned buffer.
The HID spec is not crystal clear. The best I found was the following:

    The bit length of an item's data is obtained through the Report
    descriptor
    (Report Size * Report Count). Item data is ordered just as items are
    ordered in
    the Report descriptor. If a Report ID tag was used in the Report
    descriptor, all
    reports include a single byte ID prefix. If the Report ID tag was
    not used, all
    values are returned in a single report and a prefix ID is not
    included in that report.

I take it to mean, yes. It says "all reports." It doesn't specifically 
say "all reports on the interrupt endpoint," and it doesn't say "all 
reports on the control endpoint only." It seems to me like it's 
redundant to send it on the control endpoint, which is why I didn't 
originally implement it that way, but Amit Nagal had a device which 
required the report ID in byte zero on the control endpoint, so and 
that's why it sends it that way now.

Alan.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help