Re: composite gadget support
"Ramirez-Ortiz, Jorge" <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Message-ID | <35786B99AB3FDC45A821572461791973015AF7ED@gbrwgceumf01.eu.xerox.net> |
Thanks a lot Alan! Yes it is multiple configurations -only one configuration installed at a time- I am after. This means that the problem then is between my chair and my keyboard which I am used to... One last thing if I may, how do I turn configurations on and off? Can I do that at runtime and if I can, based on what? Thanks everyone for the support jorge ______________________________ Jorge Ramirez-Ortiz [email protected] 0034 952 415 479 0044 1707 35 2669 -----Original Message----- From: Alan Stern [mailto:[email protected]] Sent: 29 October 2007 14:37 To: Ramirez-Ortiz, Jorge Cc: David Brownell; [email protected] Subject: Re: [linux-usb-devel] composite gadget support On Mon, 29 Oct 2007, Ramirez-Ortiz, Jorge wrote: > Thanks David > What I am trying to do is to combine two drivers into a single one (a > usb2print propietary driver and the g_ether driver). > Instead of writing a composite driver, would it be possible to write > just two configurations? To be honest I don't think I understand the > distinction between functions and configurations. Configurations are mutually exclusive; only one configuration can be installed at any time. A configuration can contain multiple interfaces, and all of those interfaces are available whenever the configuration is installed. So if you want your device to act as a printer and ethernet interface simultaneously then you have to use multiple interfaces (i.e., make it a composite gadget). If you want only one function or the other to be available at any time, then you can use multiple configs. Alan Stern ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel