wjasper / Linux_Drivers

Open source Linux device drivers
GNU General Public License v3.0
110 stars 64 forks source link

Suggestions to make this code more usable as a library #5

Open Dan-Lightsource opened 7 years ago

Dan-Lightsource commented 7 years ago

@wjasper Thanks for your work in putting together and sharing this comprehensive library. I found it to be a very useful reference to understand the workings of the underlying hardware interface on these USB devices.

I was initially hoping to use this code as a drop-in library, but encountered some obstacles in doing so. Here are some suggestions to consider for possible improvements in that regard:

wjasper commented 7 years ago

I've tried to remove as many printf and friends a possible. Some are unavoidable. Tried to return as many libusb API calls as possible. Thanks for the suggestion.