Class UsbConfiguration
Definition
- Assembly:
- Tizen.System.Usb.dll
A class to manage the USB configuration.
public class UsbConfiguration : IDisposable
- Inheritance
-
objectUsbConfiguration
- Implements
-
System.IDisposable
Properties
View SourceConfigurationString
The configuration string.
Declaration
public string ConfigurationString { get; }
Property Value
Type | Description |
---|---|
string |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
System.InvalidOperationException | Throws exception if device is disconnected or not opened for operation or busy as its interfaces are currently claimed. |
Interfaces
A dictionary for mapping the interface IDs to interface instances for a given configuration.
Declaration
public IReadOnlyDictionary<int, UsbInterface> Interfaces { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyDictionary<TKey, TValue><int, UsbInterface> |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
IsSelfPowered
Checks if the device is self-powered in a given configuration.
Declaration
public bool IsSelfPowered { get; }
Property Value
Type | Description |
---|---|
bool |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
MaximumPowerRequired
Gets the maximum power required in a given configuration, in mA.
Declaration
public int MaximumPowerRequired { get; }
Property Value
Type | Description |
---|---|
int |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
SupportRemoteWakeup
Checks if the device in a given configuration supports remote wakeup.
Declaration
public bool SupportRemoteWakeup { get; }
Property Value
Type | Description |
---|---|
bool |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
Methods
View SourceDispose()
Releases all the resources used by the ConnectionProfile. It should be called after it has finished using the object.
Declaration
public void Dispose()
~UsbConfiguration()
Finalizes an instance of the UsbConfiguration class.
Declaration
protected ~UsbConfiguration()
SetAsActive()
Sets this configuration as an active configuration for the device.
Declaration
public void SetAsActive()
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
System.InvalidOperationException | Throws an exception if the device is disconnected, or not opened for an operation, or busy as its interfaces are currently claimed. |