Re: About gadget configfs

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

 



On Tue, 6 May 2014, Peter Chen wrote:

> 3. Besides, I have tried two configurations, and each configuration with
> one function, I find the host PC always set configuration 1 (The first
> 		configuration), any ways to switch configuration at host
> side? libusb?

You can switch configurations on a Linux host by writing to a sysfs 
file:

	echo N >/sys/bus/usb/devices/.../bConfigurationValue

where N is the bConfigurationValue of the config you want to use and 
"..." is the pathname for the device.

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