Mercurial > hg > ucis.core
view USBLib/Communication/IUsbDevice.cs @ 96:94df2951d118
USBLib: fix USB string descriptor retrieval
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Thu, 26 Jun 2014 21:04:20 +0200 |
parents | 2d16447eff12 |
children |
line wrap: on
line source
???using System; namespace UCIS.USBLib.Communication { public interface IUsbDevice : IUsbInterface, IDisposable { new Byte Configuration { get; set; } void ClaimInterface(int interfaceID); void ReleaseInterface(int interfaceID); void ResetDevice(); IUsbDeviceRegistry Registry { get; } } public interface IUsbInterface : IDisposable { Byte Configuration { get; } void Close(); int GetDescriptor(byte descriptorType, byte index, short langId, Byte[] buffer, int offset, int length); int PipeTransfer(Byte endpoint, Byte[] buffer, int offset, int length); void PipeReset(Byte endpoint); void PipeAbort(Byte endpoint); int ControlTransfer(UsbControlRequestType requestType, byte request, short value, short index, Byte[] buffer, int offset, int length); UsbPipeStream GetPipeStream(Byte endpoint); } }