From: lokilee73 Date: Fri, 15 Dec 2017 13:42:18 +0000 (+0900) Subject: [Usb] Change API version from 4 to 5 X-Git-Tag: 5.0.0-preview1-00414^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F47%2F164147%2F1;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [Usb] Change API version from 4 to 5 Change-Id: I9b73eb1d7a7634e1264e405c6f3006c5688dcc94 Signed-off-by: lokilee73 --- diff --git a/src/Tizen.System.Usb/Usb/EndpointDirection.cs b/src/Tizen.System.Usb/Usb/EndpointDirection.cs old mode 100644 new mode 100755 index 597cf39..1a4b020 --- a/src/Tizen.System.Usb/Usb/EndpointDirection.cs +++ b/src/Tizen.System.Usb/Usb/EndpointDirection.cs @@ -19,7 +19,7 @@ namespace Tizen.System.Usb /// /// Enumeration of transfer direction for Endpoints. /// - /// 4 + /// 5 public enum EndpointDirection { /// diff --git a/src/Tizen.System.Usb/Usb/HotPluggedEventArgs.cs b/src/Tizen.System.Usb/Usb/HotPluggedEventArgs.cs index 5121e3c..ef90783 100755 --- a/src/Tizen.System.Usb/Usb/HotPluggedEventArgs.cs +++ b/src/Tizen.System.Usb/Usb/HotPluggedEventArgs.cs @@ -21,7 +21,7 @@ namespace Tizen.System.Usb /// /// Event arguments for Hot Plugged event for USB devices. /// - /// 4 + /// 5 public class HotPluggedEventArgs : EventArgs { internal HotPluggedEventArgs(UsbDevice device, HotplugEventType type) @@ -35,7 +35,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public UsbDevice Device { get; } /// @@ -43,7 +43,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public HotplugEventType EventType { get; } } } diff --git a/src/Tizen.System.Usb/Usb/HotplugEventType.cs b/src/Tizen.System.Usb/Usb/HotplugEventType.cs old mode 100644 new mode 100755 index 1f47cf8..266b1d8 --- a/src/Tizen.System.Usb/Usb/HotplugEventType.cs +++ b/src/Tizen.System.Usb/Usb/HotplugEventType.cs @@ -19,7 +19,7 @@ namespace Tizen.System.Usb /// /// Enumeration of hot plugged event type for USB devices. /// - /// 4 + /// 5 public enum HotplugEventType { /// diff --git a/src/Tizen.System.Usb/Usb/SynchronizationType.cs b/src/Tizen.System.Usb/Usb/SynchronizationType.cs old mode 100644 new mode 100755 index 4f2cc86..4045646 --- a/src/Tizen.System.Usb/Usb/SynchronizationType.cs +++ b/src/Tizen.System.Usb/Usb/SynchronizationType.cs @@ -19,7 +19,7 @@ namespace Tizen.System.Usb /// /// Enumeration of isochronous endpoint's synchronization type. /// - /// 4 + /// 5 public enum SynchronizationType { /// diff --git a/src/Tizen.System.Usb/Usb/UsageType.cs b/src/Tizen.System.Usb/Usb/UsageType.cs old mode 100644 new mode 100755 index e0384e6..2963e9a --- a/src/Tizen.System.Usb/Usb/UsageType.cs +++ b/src/Tizen.System.Usb/Usb/UsageType.cs @@ -19,7 +19,7 @@ namespace Tizen.System.Usb /// /// Enumeration of an endpoint's usage type. /// - /// 4 + /// 5 public enum UsageType { /// diff --git a/src/Tizen.System.Usb/Usb/UsbBulkEndpoint.cs b/src/Tizen.System.Usb/Usb/UsbBulkEndpoint.cs index b260b92..5c7d008 100755 --- a/src/Tizen.System.Usb/Usb/UsbBulkEndpoint.cs +++ b/src/Tizen.System.Usb/Usb/UsbBulkEndpoint.cs @@ -45,7 +45,7 @@ namespace Tizen.System.Usb /// The required feature is not supported. /// Throws exception if device is disconnected or not opened for operation. /// Throws exception if transfer timed-out. - /// 4 + /// 5 public int Transfer(byte[] buffer, int length, uint timeout) { return TransferImpl(buffer, length, timeout); diff --git a/src/Tizen.System.Usb/Usb/UsbConfiguration.cs b/src/Tizen.System.Usb/Usb/UsbConfiguration.cs index 369a690..34ec88e 100755 --- a/src/Tizen.System.Usb/Usb/UsbConfiguration.cs +++ b/src/Tizen.System.Usb/Usb/UsbConfiguration.cs @@ -23,7 +23,7 @@ namespace Tizen.System.Usb /// /// Class to manage USB Configuration. /// - /// 4 + /// 5 public class UsbConfiguration : IDisposable { internal readonly Interop.UsbConfigHandle _handle; @@ -41,7 +41,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public bool IsSelfPowered { get @@ -56,7 +56,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public bool SupportRemoteWakeup { get @@ -71,7 +71,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public int MaximumPowerRequired { get @@ -86,7 +86,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public IReadOnlyDictionary Interfaces { get @@ -116,7 +116,7 @@ namespace Tizen.System.Usb /// /// Throws exception if device is disconnected or not opened for operation or busy as its interfaces are currently claimed. /// - /// 4 + /// 5 public string ConfigurationString { get @@ -133,7 +133,7 @@ namespace Tizen.System.Usb /// http://tizen.org/feature/usb.host /// The required feature is not supported. /// Throws exception if device is disconnected or not opened for operation. - /// 4 + /// 5 public void SetAsActive() { ThrowIfDisposed(); @@ -158,7 +158,7 @@ namespace Tizen.System.Usb /// /// Releases all resources used by the ConnectionProfile. /// It should be called after finished using of the object. - /// 4 + /// 5 protected virtual void Dispose(bool disposing) { if (!disposedValue) @@ -179,7 +179,7 @@ namespace Tizen.System.Usb /// /// Releases all resources used by the ConnectionProfile. /// It should be called after finished using of the object. - /// 4 + /// 5 public void Dispose() { Dispose(true); diff --git a/src/Tizen.System.Usb/Usb/UsbControlEndpoint.cs b/src/Tizen.System.Usb/Usb/UsbControlEndpoint.cs index 8f5d12e..eae563a 100755 --- a/src/Tizen.System.Usb/Usb/UsbControlEndpoint.cs +++ b/src/Tizen.System.Usb/Usb/UsbControlEndpoint.cs @@ -21,7 +21,7 @@ namespace Tizen.System.Usb /// /// USB Control Endpoint class. /// - /// 4 + /// 5 public class UsbControlEndpoint : UsbEndpoint { private readonly UsbDevice _device; @@ -36,7 +36,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public new int Id { get @@ -50,7 +50,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public new EndpointDirection Direction { get @@ -64,7 +64,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public new int MaxPacketSize { get @@ -92,7 +92,7 @@ namespace Tizen.System.Usb /// The required feature is not supported. /// Throws exception if device is disconnected or not opened for operation. /// Throws exception if transfer timed-out. - /// 4 + /// 5 public int Transfer(byte requestType, byte request, ushort value, ushort index, byte[] data, ushort length, uint timeout) { _device.ThrowIfDisposed(); diff --git a/src/Tizen.System.Usb/Usb/UsbDevice.cs b/src/Tizen.System.Usb/Usb/UsbDevice.cs index 1516d4f..323d39b 100755 --- a/src/Tizen.System.Usb/Usb/UsbDevice.cs +++ b/src/Tizen.System.Usb/Usb/UsbDevice.cs @@ -23,7 +23,7 @@ namespace Tizen.System.Usb /// /// Class to manage USB host devices. This class contains operations for enumerating, opening and closing devices. /// - /// 4 + /// 5 public class UsbDevice : IDisposable { internal readonly Interop.HostDeviceHandle _handle; @@ -41,7 +41,7 @@ namespace Tizen.System.Usb /// http://tizen.org/feature/usb.host /// The required feature is not supported. /// Throws exception if user has insufficient permission on device. - /// 4 + /// 5 public int BusId { get { @@ -55,7 +55,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public int Address { get @@ -70,7 +70,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public IEnumerable Ports { get @@ -85,7 +85,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public bool IsOpened { get @@ -100,7 +100,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public UsbControlEndpoint ControlEndpoint { get @@ -116,7 +116,7 @@ namespace Tizen.System.Usb /// http://tizen.org/feature/usb.host /// The required feature is not supported. /// Throws exception if device is disconnected or not opened for operation. - /// 4 + /// 5 public UsbConfiguration ActiveConfiguration { get @@ -134,7 +134,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public IReadOnlyDictionary Configurations { get @@ -157,7 +157,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public UsbDeviceInformation DeviceInformation { get @@ -173,7 +173,7 @@ namespace Tizen.System.Usb /// http://tizen.org/feature/usb.host /// The required feature is not supported. /// Throws exception if device is disconnected or not opened for operation. - /// 4 + /// 5 public UsbDeviceStrings Strings { get @@ -192,7 +192,7 @@ namespace Tizen.System.Usb /// Throws exception in case of insufficient memory. /// Throws exception if device is disconnected. /// Throws exception if user has insufficient permission on device. - /// 4 + /// 5 public void Open() { ThrowIfDisposed(); @@ -204,7 +204,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public void Close() { ThrowIfDisposed(); @@ -230,7 +230,7 @@ namespace Tizen.System.Usb /// /// Releases all resources used by the ConnectionProfile. /// It should be called after finished using of the object. - /// 4 + /// 5 protected virtual void Dispose(bool disposing) { if (!disposedValue) @@ -251,7 +251,7 @@ namespace Tizen.System.Usb /// /// Releases all resources used by the ConnectionProfile. /// It should be called after finished using of the object. - /// 4 + /// 5 public void Dispose() { Dispose(true); diff --git a/src/Tizen.System.Usb/Usb/UsbDeviceInformation.cs b/src/Tizen.System.Usb/Usb/UsbDeviceInformation.cs index 38a58ef..4eaa24f 100755 --- a/src/Tizen.System.Usb/Usb/UsbDeviceInformation.cs +++ b/src/Tizen.System.Usb/Usb/UsbDeviceInformation.cs @@ -21,7 +21,7 @@ namespace Tizen.System.Usb /// /// Device information for USB device. /// - /// 4 + /// 5 public class UsbDeviceInformation { private readonly UsbDevice _device; @@ -37,7 +37,7 @@ namespace Tizen.System.Usb /// http://tizen.org/feature/usb.host /// The required feature is not supported. /// Throws exception if user has insufficient permission on device. - /// 4 + /// 5 public int UsbVersion { get @@ -52,7 +52,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public int Class { get @@ -67,7 +67,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public int Subclass { get @@ -82,7 +82,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public int Protocol { get @@ -97,7 +97,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public int VendorId { get @@ -112,7 +112,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public int ProductId { get @@ -127,7 +127,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public int DeviceVersion { get diff --git a/src/Tizen.System.Usb/Usb/UsbDeviceStrings.cs b/src/Tizen.System.Usb/Usb/UsbDeviceStrings.cs index 1c6b19f..6276def 100755 --- a/src/Tizen.System.Usb/Usb/UsbDeviceStrings.cs +++ b/src/Tizen.System.Usb/Usb/UsbDeviceStrings.cs @@ -21,7 +21,7 @@ namespace Tizen.System.Usb /// /// String information for USB device. /// - /// 4 + /// 5 public class UsbDeviceStrings { private readonly UsbDevice _device; @@ -40,7 +40,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public string Manufacturer { get @@ -55,7 +55,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public string Product { get @@ -70,7 +70,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public string Serial { get diff --git a/src/Tizen.System.Usb/Usb/UsbEndpoint.cs b/src/Tizen.System.Usb/Usb/UsbEndpoint.cs index 3c06f77..23f5b68 100755 --- a/src/Tizen.System.Usb/Usb/UsbEndpoint.cs +++ b/src/Tizen.System.Usb/Usb/UsbEndpoint.cs @@ -21,7 +21,7 @@ namespace Tizen.System.Usb /// /// USB Endpoint class. /// - /// 4 + /// 5 public class UsbEndpoint { internal readonly Interop.UsbEndpointHandle _handle; @@ -38,7 +38,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public int Id { get @@ -53,7 +53,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public EndpointDirection Direction { get @@ -68,7 +68,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public int MaxPacketSize { get diff --git a/src/Tizen.System.Usb/Usb/UsbInterface.cs b/src/Tizen.System.Usb/Usb/UsbInterface.cs index 850eb8a..58f2998 100755 --- a/src/Tizen.System.Usb/Usb/UsbInterface.cs +++ b/src/Tizen.System.Usb/Usb/UsbInterface.cs @@ -22,7 +22,7 @@ namespace Tizen.System.Usb /// /// Class to manage USB Interfaces. /// - /// 4 + /// 5 public class UsbInterface { internal readonly Interop.UsbInterfaceHandle _handle; @@ -41,7 +41,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public int Id { get @@ -56,7 +56,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public int AlternateSetting { set @@ -71,7 +71,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public IReadOnlyDictionary Endpoints { get @@ -102,7 +102,7 @@ namespace Tizen.System.Usb /// /// Throws exception if device is disconnected or not opened for operation. /// - /// 4 + /// 5 public string InterfaceString { get @@ -122,7 +122,7 @@ namespace Tizen.System.Usb /// /// Throws exception if device is disconnected or not opened for operation or another program or driver has claimed the interface. /// - /// 4 + /// 5 public void Claim(bool force) { ThrowIfDisposed(); @@ -145,7 +145,7 @@ namespace Tizen.System.Usb /// The required feature is not supported. /// Throws exception if device is disconnected or not opened for operation. /// Throws exception if user has insufficient permission on device. - /// 4 + /// 5 public void Release() { ThrowIfDisposed(); diff --git a/src/Tizen.System.Usb/Usb/UsbInterruptEndpoint.cs b/src/Tizen.System.Usb/Usb/UsbInterruptEndpoint.cs index 798ddb2..ad530a6 100755 --- a/src/Tizen.System.Usb/Usb/UsbInterruptEndpoint.cs +++ b/src/Tizen.System.Usb/Usb/UsbInterruptEndpoint.cs @@ -21,7 +21,7 @@ namespace Tizen.System.Usb /// /// USB Interrupt Endpoint class. /// - /// 4 + /// 5 public class UsbInterruptEndpoint : UsbEndpoint { internal UsbInterruptEndpoint(UsbInterface parent, Interop.UsbEndpointHandle handle) : base(parent, handle) @@ -33,7 +33,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public int PollingInterval { get @@ -60,7 +60,7 @@ namespace Tizen.System.Usb /// The required feature is not supported. /// Throws exception if device is disconnected or not opened for operation. /// Throws exception if transfer timed-out. - /// 4 + /// 5 public int Transfer(byte[] buffer, int length, uint timeout) { return TransferImpl(buffer, length, timeout); diff --git a/src/Tizen.System.Usb/Usb/UsbIsochronousEndpoint.cs b/src/Tizen.System.Usb/Usb/UsbIsochronousEndpoint.cs index 5dfb53f..d891911 100755 --- a/src/Tizen.System.Usb/Usb/UsbIsochronousEndpoint.cs +++ b/src/Tizen.System.Usb/Usb/UsbIsochronousEndpoint.cs @@ -21,7 +21,7 @@ namespace Tizen.System.Usb /// /// USB Isochronous Endpoint class. /// - /// 4 + /// 5 public class UsbIsochronousEndpoint : UsbEndpoint { internal UsbIsochronousEndpoint(UsbInterface parent, Interop.UsbEndpointHandle handle) : base(parent, handle) @@ -33,7 +33,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public SynchronizationType SynchronizationType { get @@ -48,7 +48,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public UsageType UsageType { get diff --git a/src/Tizen.System.Usb/Usb/UsbManager.cs b/src/Tizen.System.Usb/Usb/UsbManager.cs index 6c279fc..953cb30 100755 --- a/src/Tizen.System.Usb/Usb/UsbManager.cs +++ b/src/Tizen.System.Usb/Usb/UsbManager.cs @@ -23,7 +23,7 @@ namespace Tizen.System.Usb /// /// USB Manager class. /// - /// 4 + /// 5 public class UsbManager : IDisposable { // It needs to be static as its destroy function must be called after closing all devices and before application close. @@ -48,7 +48,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public UsbManager() { if (_context == null) throw new NotSupportedException("USB host operations are not supported in this device"); @@ -71,7 +71,7 @@ namespace Tizen.System.Usb /// The required feature is not supported. /// Throws exception in case of insufficient memory. /// Throws exception if user has insufficient permission on device. - /// 4 + /// 5 public IEnumerable AvailableDevices { get @@ -86,7 +86,7 @@ namespace Tizen.System.Usb /// /// http://tizen.org/feature/usb.host /// The required feature is not supported. - /// 4 + /// 5 public event EventHandler DeviceHotPlugged; internal void HostHotplugAttachCallback(IntPtr devHandle, IntPtr userData) @@ -141,7 +141,7 @@ namespace Tizen.System.Usb Dispose(false); } - /// 4 + /// 5 public void Dispose() { Dispose(true);