tewarid / tewarid.github.io

A Mutable Log
https://tewarid.github.io
MIT License
9 stars 3 forks source link

2012/03/23/custom-usb-driver-and-app-using-winusb-and-c #29

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

Custom USB driver and app using WinUSB and C# | A Mutable Log

Custom USB driver and app using WinUSB and C#

https://tewarid.github.io/2012/03/23/custom-usb-driver-and-app-using-winusb-and-c.html

michael-callaway commented 1 year ago

I found your article very helpful. when i try to compile the snip-it you provides is tell me it cannot find the name space for the win... functions. Example winUSBDevice I have tried to find the namespace referenced. any input would be helpful. thanks.

tewarid commented 1 year ago

I'm glad you found the article helpful! Have you tried adding a reference to WinUSBNet using nuget? See https://www.nuget.org/packages/WinUSBNet. If you have and still aren't able to find the reference, you may need to see https://learn.microsoft.com/en-us/nuget/consume-packages/package-restore.

qloi2002 commented 6 months ago

Hi Tewarid, iface.InPipe.Read(data) only work if pipe in has data, if empty it make app suspended. So how can I resolve this problem? Can we receive data whenever device send data to host? Thank you!