Mercurial > hg > ucis.core
comparison USBLib/Communication/UsbInterface.cs @ 35:6fcedb1030bf
USBLib: Added support for USBIO driver
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Sun, 21 Apr 2013 18:32:04 +0200 |
parents | dcfec2be27c9 |
children | 053cc617af54 |
comparison
equal
deleted
inserted
replaced
34:70bde4fa6a2f | 35:6fcedb1030bf |
---|---|
41 public abstract int InterruptWrite(Byte endpoint, Byte[] buffer, int offset, int length); | 41 public abstract int InterruptWrite(Byte endpoint, Byte[] buffer, int offset, int length); |
42 public abstract int InterruptRead(Byte endpoint, Byte[] buffer, int offset, int length); | 42 public abstract int InterruptRead(Byte endpoint, Byte[] buffer, int offset, int length); |
43 public abstract int ControlWrite(UsbControlRequestType requestType, byte request, short value, short index, byte[] buffer, int offset, int length); | 43 public abstract int ControlWrite(UsbControlRequestType requestType, byte request, short value, short index, byte[] buffer, int offset, int length); |
44 public abstract int ControlRead(UsbControlRequestType requestType, byte request, short value, short index, byte[] buffer, int offset, int length); | 44 public abstract int ControlRead(UsbControlRequestType requestType, byte request, short value, short index, byte[] buffer, int offset, int length); |
45 | 45 |
46 public UsbPipeStream GetBulkStream(Byte endpoint) { | 46 public virtual UsbPipeStream GetBulkStream(Byte endpoint) { |
47 return new UsbPipeStream(this, endpoint, false); | 47 return new UsbPipeStream(this, endpoint, false); |
48 } | 48 } |
49 public UsbPipeStream GetInterruptStream(Byte endpoint) { | 49 public virtual UsbPipeStream GetInterruptStream(Byte endpoint) { |
50 return new UsbPipeStream(this, endpoint, true); | 50 return new UsbPipeStream(this, endpoint, true); |
51 } | 51 } |
52 | 52 |
53 public void Dispose() { | 53 public void Dispose() { |
54 Close(); | 54 Close(); |