Mercurial > hg > ucis.core
annotate USBLib/Communication/IUsbDevice.cs @ 94:3c1bba376dca
HTTP: Added support for cookies, improved prefix selector
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Sat, 21 Jun 2014 00:40:33 +0200 |
parents | 2d16447eff12 |
children |
rev | line source |
---|---|
21 | 1 ???using System; |
2 | |
3 namespace UCIS.USBLib.Communication { | |
4 public interface IUsbDevice : IUsbInterface, IDisposable { | |
5 new Byte Configuration { get; set; } | |
6 void ClaimInterface(int interfaceID); | |
7 void ReleaseInterface(int interfaceID); | |
8 void ResetDevice(); | |
9 | |
10 IUsbDeviceRegistry Registry { get; } | |
11 } | |
12 public interface IUsbInterface : IDisposable { | |
13 Byte Configuration { get; } | |
14 void Close(); | |
15 | |
16 int GetDescriptor(byte descriptorType, byte index, short langId, Byte[] buffer, int offset, int length); | |
17 | |
67
2d16447eff12
Simplified USB communication code, added functions to abort pipe transfers
Ivo Smits <Ivo@UCIS.nl>
parents:
65
diff
changeset
|
18 int PipeTransfer(Byte endpoint, Byte[] buffer, int offset, int length); |
2d16447eff12
Simplified USB communication code, added functions to abort pipe transfers
Ivo Smits <Ivo@UCIS.nl>
parents:
65
diff
changeset
|
19 void PipeReset(Byte endpoint); |
2d16447eff12
Simplified USB communication code, added functions to abort pipe transfers
Ivo Smits <Ivo@UCIS.nl>
parents:
65
diff
changeset
|
20 void PipeAbort(Byte endpoint); |
2d16447eff12
Simplified USB communication code, added functions to abort pipe transfers
Ivo Smits <Ivo@UCIS.nl>
parents:
65
diff
changeset
|
21 int ControlTransfer(UsbControlRequestType requestType, byte request, short value, short index, Byte[] buffer, int offset, int length); |
21 | 22 |
67
2d16447eff12
Simplified USB communication code, added functions to abort pipe transfers
Ivo Smits <Ivo@UCIS.nl>
parents:
65
diff
changeset
|
23 UsbPipeStream GetPipeStream(Byte endpoint); |
21 | 24 } |
25 } |