Documentation added for the USB Host Library
I’m happy to announce that documentation is now available for all the libraries I have written for the USB Host Shield library.
The documentation is available at the following link: http://felis.github.com/USB_Host_Shield_2.0.
The documentation is generated using Doxygen which is a free documentation-generator based upon the header files in the source code.
For instance the following comment will end up looking like this in the documentation:

I hope this will be useful for people who is new to the USB host library or even people who just want a quick overview.
If you spot any typos or got any comments please let me know in the comments below.
Categories: Arduino, Bluetooth, TKJ Electronics, USB

Awesome Lauszus,
Thank you very much
Thank you for this.
It would be great if the same could be made for the PTP lib.
I’m struggling with being able to compile the examples for this library and cannot find an accurate guide and help…
@Adi Soffer
I haven’t wrote that library, so I’m afraid that I’m not able to do that.
What version of the QP library are you using? Actually I have never used that library.
@Lauszus
Hey -- thanks for taking the time here --
after reading extensively about it I’m using 4.3
@Adi Soffer
Here is a zip file with the code: PTP_20.zip. I have made the necessary changes, in order for the library to compile.
Also make sure that the USB Host library directory is called: “USB_Host_Shield_20″
I really appreciate this.
Since I’ve gone through all sorts of library editing after reading comments and tips,
I’ll let you know the changes I’ve made:
1. Replaced qp_ccp (as was recommended by Oleg)
2. Commented out these lines in the qp_port.cpp: (as was recommended by Alex)
// void operator delete(void *) {
// Q_ERROR(); // this operator should never be actually called
// }
3. Added the following line to eoseventhandler.h file found in EOSCamController folder:
virtual void OnObjectCreated(const EOSEvent *evt) {};
(as was recommended by Alex)
All this led to being able to compile all -- but the EOSRemote sketch -- that compiled with the following error:
EOSRemote.cpp: In member function ‘virtual void CamStateHandlers::OnDeviceInitializedState(PTP*)’:
EOSRemote.pde:-1: error: cannot declare variable ‘hnd’ to be of abstract type ‘EosEventHandlers’
/eoseventhandlers.h:12: note: because the following virtual functions are pure within ‘EosEventHandlers’:
C:\Program Files (x86)\arduino-1.0.1\libraries\ptp/eoseventparser.h:37: note: virtual void EOSEventHandlers::OnObjectCreated(const EOSEvent*)
Now, after dl your zip and renaming as instructed, EOSCamController is no longer able to compile. I’m pasting jsut the first few lines of the error log so as not to clog everything up here:
qp\qp.cpp.o: In function `QEP::getVersion()’:
C:\Program Files (x86)\arduino-1.0.3\libraries\qp/qp.cpp:95: multiple definition of `QEP::getVersion()’
PTP_20\qp.cpp.o:C:\Program Files (x86)\arduino-1.0.3\libraries\PTP_20/qp.cpp:95: first defined here
Once again, thanks a lot
@soffer
Simply delete both the PTP and QP libraries downloaded and download the zip file I provided! I have made the necessary changes to make it work.
Oh man -- It is finally compiling!
Thank you so much!
This is great, and I’m truly thankful.
I can finally begin testing this with my 5D mkII
@soffer
You are welcome
Mil gracias por informacion tan valiosa. Será de gran ayuda para realizar proyectos con arduino.
@Jose Wilson
You are welcome