Mercurial > hg > ucis.core
view USBLib/Communication/IUsbDevice.cs @ 68:e811297f5aa4
Updated USBLib: removed old LibUsbDotNet compatibility code and added new information helper classes
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Wed, 16 Oct 2013 16:58:39 +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); } }