On Tue, 4 Sep 2018, Ranran wrote:

> On Tue, Sep 4, 2018 at 2:36 PM Ranran <ransha...@gmail.com> wrote:
> >
> > Hello,
> >
> > In gadgetfs documentation I find no mention of endpoints:
> > https://www.kernel.org/doc/Documentation/usb/gadget_configfs.txt
> >
> > Is it possible to create endpoints using gadgetfs ?
> >
> 
> The question need to be phrased differently:
> Is it possible to create HID using gadgetfs.

Yes, it is (as far as I know -- I haven't actually tried to do it).

> I see that it is possible to create usb device with endpoints as described 
> here:
> http://www.linux-usb.org/gadget/usb.c
> But what about HID device ? How can we implement HID device using gadget ?

That's a complicated question.  You can't implement an HID gadget
without first understanding the HID specification.  Have you read the 
specification and do you understand it?

Assuming you have, are there any specific questions you need answers 
to?

Alan Stern

Reply via email to