On Tue, Sep 4, 2018 at 10:21 PM Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote: > > On Tue, 4 Sep 2018, Ranran wrote: > > > On Tue, Sep 4, 2018 at 2:36 PM Ranran <ranshalit@xxxxxxxxx> 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? > I have one more question please on this topic, juto to verify: Seems that gadget hid (hidg) doesn't supports getfeature/setfeature ? https://github.com/torvalds/linux/blob/master/Documentation/usb/gadget_hid.txt Is it planned to be added ? Best Regards, ranran > Alan Stern >