Class UsbInterface
Definition
- Namespace:
- Tizen.System.Usb
- Assembly:
- Tizen.System.Usb.dll
- API Level:
- 4
A class to manage the USB interfaces.
C#Copypublic class UsbInterface
- Inheritance
-
UsbInterface
Properties
AlternateSetting
Sets an alternative setting. Use the index of a new alternative setting for a given interface.
Declaration
C#Copypublic int AlternateSetting { set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
API Level: 4
Feature: http://tizen.org/feature/usb.host
Endpoints
A dictionary for mapping the endpoint IDs to endpoint instances for a given interface.
Declaration
C#Copypublic IReadOnlyDictionary<int, UsbEndpoint> Endpoints { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyDictionary<System.Int32, UsbEndpoint> |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
API Level: 4
Feature: http://tizen.org/feature/usb.host
Declaration
C#Copypublic int Id { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
API Level: 4
Feature: http://tizen.org/feature/usb.host
Declaration
C#Copypublic string InterfaceString { get; }
Property Value
Type | Description |
---|---|
System.String |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
InvalidOperationException | Throws exception if the device is disconnected or not opened for operation. |
API Level: 5
Feature: http://tizen.org/feature/usb.host
Methods
Claim(Boolean)
Claims the interface on a device. The interface must be claimed first to perform I/O operations.
Declaration
C#Copypublic void Claim(bool force)
Parameters
Type | Name | Description |
---|---|---|
Boolean | force | Set to |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
InvalidOperationException | Throws an exception if device is disconnected or not opened for operation or another program or driver has claimed the interface. |
API Level: 4
Feature: http://tizen.org/feature/usb.host
Declaration
C#Copypublic void Release()
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
InvalidOperationException | Throws exception if the device is disconnected or not opened for operation. |
UnauthorizedAccessException | Throws exception if user has insufficient permission on the device. |