Re: Setting a HID report via an interrupt transfer.

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

 



On Fri, 6 Apr 2012, Dave Mielke wrote:

> [quoted lines by Alan Stern on 2012/04/06 at 10:22 -0400]
> 
> >There's nothing special about setting reports; all you do is a normal 
> >interrupt-OUT transfer.
> 
> Thanks. Where does the report number and/or any other required information go? 
> Should it just be put in a byte which is prepended to the data? For example, to 
> set report 3 to the three characters "abc", should we actually write {0X03, 
> 0X61, 0X62, 0X63}?

Yes.  This is described in the USB HID specification, sections 8.1 and 
8.2.

...

> Even though we already do most of what's necessary, I still do very much 
> appreciate your complete answer just in case we weren't.
> 
> I think we now just need to know where to put the report number, and whatever 
> other information may also need to be added to the data.

Then you should now be all set.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" 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]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux