Mercurial > hg > ucis.core
diff 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 |
line wrap: on
line diff
--- a/USBLib/Communication/UsbInterface.cs Sun Apr 21 17:01:03 2013 +0200 +++ b/USBLib/Communication/UsbInterface.cs Sun Apr 21 18:32:04 2013 +0200 @@ -43,10 +43,10 @@ public abstract int ControlWrite(UsbControlRequestType requestType, byte request, short value, short index, byte[] buffer, int offset, int length); public abstract int ControlRead(UsbControlRequestType requestType, byte request, short value, short index, byte[] buffer, int offset, int length); - public UsbPipeStream GetBulkStream(Byte endpoint) { + public virtual UsbPipeStream GetBulkStream(Byte endpoint) { return new UsbPipeStream(this, endpoint, false); } - public UsbPipeStream GetInterruptStream(Byte endpoint) { + public virtual UsbPipeStream GetInterruptStream(Byte endpoint) { return new UsbPipeStream(this, endpoint, true); }