Mercurial > hg > ucis.core
view USBLib/Communication/IUsbDevice.cs @ 75:50d4aed66c67
Improved HTTP classes
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Mon, 03 Feb 2014 22:53:31 +0100 |
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); } }