Mercurial > hg > ucis.core
comparison USBLib/Windows/USB/UsbDevice.cs @ 67:2d16447eff12
Simplified USB communication code, added functions to abort pipe transfers
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Wed, 16 Oct 2013 01:11:49 +0200 |
parents | abe0d55a2201 |
children | e811297f5aa4 |
comparison
equal
deleted
inserted
replaced
66:b7bc27c6734e | 67:2d16447eff12 |
---|---|
155 byte IUsbInterface.Configuration { get { return CurrentConfigurationValue; } } | 155 byte IUsbInterface.Configuration { get { return CurrentConfigurationValue; } } |
156 byte IUsbDevice.Configuration { get { return CurrentConfigurationValue; } set { throw new NotSupportedException(); } } | 156 byte IUsbDevice.Configuration { get { return CurrentConfigurationValue; } set { throw new NotSupportedException(); } } |
157 void IUsbDevice.ResetDevice() { throw new NotImplementedException(); } | 157 void IUsbDevice.ResetDevice() { throw new NotImplementedException(); } |
158 IUsbDeviceRegistry IUsbDevice.Registry { get { throw new NotImplementedException(); } } | 158 IUsbDeviceRegistry IUsbDevice.Registry { get { throw new NotImplementedException(); } } |
159 void IUsbInterface.Close() { } | 159 void IUsbInterface.Close() { } |
160 int IUsbInterface.BulkWrite(byte endpoint, byte[] buffer, int offset, int length) { throw new NotSupportedException(); } | 160 int IUsbInterface.PipeTransfer(byte endpoint, byte[] buffer, int offset, int length) { throw new NotSupportedException(); } |
161 int IUsbInterface.BulkRead(byte endpoint, byte[] buffer, int offset, int length) { throw new NotSupportedException(); } | 161 void IUsbInterface.PipeReset(byte endpoint) { throw new NotImplementedException(); } |
162 void IUsbInterface.BulkReset(byte endpoint) { throw new NotImplementedException(); } | 162 void IUsbInterface.PipeAbort(byte endpoint) { throw new NotImplementedException(); } |
163 int IUsbInterface.InterruptWrite(byte endpoint, byte[] buffer, int offset, int length) { throw new NotSupportedException(); } | 163 int IUsbInterface.ControlTransfer(UsbControlRequestType requestType, byte request, short value, short index, byte[] buffer, int offset, int length) { throw new NotSupportedException(); } |
164 int IUsbInterface.InterruptRead(byte endpoint, byte[] buffer, int offset, int length) { throw new NotSupportedException(); } | 164 UsbPipeStream IUsbInterface.GetPipeStream(byte endpoint) { throw new NotSupportedException(); } |
165 void IUsbInterface.InterruptReset(byte endpoint) { throw new NotSupportedException(); } | |
166 int IUsbInterface.ControlWrite(UsbControlRequestType requestType, byte request, short value, short index, byte[] buffer, int offset, int length) { throw new NotSupportedException(); } | |
167 int IUsbInterface.ControlRead(UsbControlRequestType requestType, byte request, short value, short index, byte[] buffer, int offset, int length) { throw new NotSupportedException(); } | |
168 UsbPipeStream IUsbInterface.GetBulkStream(byte endpoint) { throw new NotSupportedException(); } | |
169 UsbPipeStream IUsbInterface.GetInterruptStream(byte endpoint) { throw new NotSupportedException(); } | |
170 void IDisposable.Dispose() { } | 165 void IDisposable.Dispose() { } |
171 void IUsbDevice.ClaimInterface(int interfaceID) { } | 166 void IUsbDevice.ClaimInterface(int interfaceID) { } |
172 void IUsbDevice.ReleaseInterface(int interfaceID) { } | 167 void IUsbDevice.ReleaseInterface(int interfaceID) { } |
173 #endregion | 168 #endregion |
174 } | 169 } |
175 } | 170 } |