Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The Usb.conf configuration file is used to specify what USB gadgets are supported, what composite configurations are allowed and any gadget parameters. The PeripheralController group is used to define the supported gadgets and composite configurations.
Settings | Description | Value Type | Example |
---|---|---|---|
Path | Device path of the peripheral controller hardware in sysfs. | string | /sys/devices/platform/dummy_udc |
SupportedGadgets | List of supported USB gadgets. Settings for each gadget are stored in a separate settings group. | string | Ethernet,Storage,Serial |
DefaultGadget | Name of the default gadget. The gadget specified by this configuration value will be automatically activated at start up. | string | Ethernet |
CompositeGadgets | List of supported composite gadget configurations. Some hardware can support multiple active USB gadgets at the same time. For example a device can appear as both an Ethernet and a Mass Storage device. If no composite configurations are specified only one gadget can be active at a time. QUsbManager::canActivate() uses composite configurations to determine if it is possible for a gadget to activate. | string | Composite0,Composite1 |
Each composite configuration specified in PeripheralController/CompositeGadgets must have a corresponding composite group.
Settings | Description | Value Type | Example |
---|---|---|---|
Gadgets | List of gadgets that can be active at the same time in this composite configuration. | string | Ethernet,Storage |
Gadget settings are stored in a group with the same name as the gadget. Allowable settings are gadget specific. Valid keys are documented in the gadget provider classes.
Copyright © 2009 Nokia | Trademarks | Qt Extended 4.4.3 |