Mercurial > hg > ucis.core
comparison USBLib/Communication/IUsbDevice.cs @ 65:abe0d55a2201
Removed some redundant USB communication code
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Tue, 15 Oct 2013 16:19:45 +0200 |
parents | 053cc617af54 |
children | 2d16447eff12 |
comparison
equal
deleted
inserted
replaced
64:99ed461509fe | 65:abe0d55a2201 |
---|---|
6 void ClaimInterface(int interfaceID); | 6 void ClaimInterface(int interfaceID); |
7 void ReleaseInterface(int interfaceID); | 7 void ReleaseInterface(int interfaceID); |
8 void ResetDevice(); | 8 void ResetDevice(); |
9 | 9 |
10 IUsbDeviceRegistry Registry { get; } | 10 IUsbDeviceRegistry Registry { get; } |
11 | |
12 //void Close(); | |
13 } | 11 } |
14 public interface IUsbInterface : IDisposable { | 12 public interface IUsbInterface : IDisposable { |
15 Byte Configuration { get; } | 13 Byte Configuration { get; } |
16 void Close(); | 14 void Close(); |
17 | 15 |
18 //int ControlTransfer(byte requestType, byte request, short value, short index, Byte[] buffer, int offset, int length); | 16 //int ControlTransfer(byte requestType, byte request, short value, short index, Byte[] buffer, int offset, int length); |
19 int GetDescriptor(byte descriptorType, byte index, short langId, Byte[] buffer, int offset, int length); | 17 int GetDescriptor(byte descriptorType, byte index, short langId, Byte[] buffer, int offset, int length); |
20 String GetString(short langId, byte stringIndex); | |
21 | 18 |
22 int BulkWrite(Byte endpoint, Byte[] buffer, int offset, int length); | 19 int BulkWrite(Byte endpoint, Byte[] buffer, int offset, int length); |
23 int BulkRead(Byte endpoint, Byte[] buffer, int offset, int length); | 20 int BulkRead(Byte endpoint, Byte[] buffer, int offset, int length); |
24 void BulkReset(Byte endpoint); | 21 void BulkReset(Byte endpoint); |
25 int InterruptWrite(Byte endpoint, Byte[] buffer, int offset, int length); | 22 int InterruptWrite(Byte endpoint, Byte[] buffer, int offset, int length); |