>
>
> You should provide (at least) an example in the wiki.
I'll be updating the wiki soon with more documentation, but it won't be
terribly different from the test suite for the reasons stated below.
> The file
> LibusbTest.cpp is a test suite. It is way too big and complex for an
> example.
>
It's actually *very* simple ...if you take the time to look at what it's
doing, before declaring it as complex. Code that isn't immediately
self-documenting is commented. Each of the six tests are within a
try/catch block:
1. Basics - Only 20 lines of code, it demonstrates acquiring a device
and performing a dead-simple control transfer. (Need to add data, for
clarity's sake.)
2. Descriptors - Approx 100 lines, acquires device, and spits out all
available descriptors and descriptor strings.
3. Threaded/Background Transfers - Same as the first example, except
AsyncStart() is called on the transfer object, 5 additional lines of code,
compared to the first example
4. Interrupt Transfers - ~40 lines,show a transfer to/from the device.
5. Bulk Transfers - just as long as previous.
6. Isochronous Transfers - doesn't work, test fails every time for now.
Just because the entire file is 1000 lines doesn't make it complex. Each
example could be run in isolation without any changes at all. If there's
specific you'd like to see, just let me know. I barely had enough time to
write the library, so doubling -down on the test suite as a usage example.
I'll be taking a look at splitting the examples, once time allows - I have
removed the windows-specific precompiled headers that caused your problems
under OS X.
Enjoy!
--
Anthony Clay
ZarthCode LLC
5017 S Narcissus Ave
Broken Arrow, OK 74011
http://www.zarthcode.com
anthony.c...@zarthcode.com
918.860.CODE
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel