Eric Sepich
2011-10-23 22:17:22 UTC
I have familiarised myself with the usbls.c example and have spent a bit
of time reading the USB 2.0 specification. I would like to develop a
very simple program to read and write data (files) to and from a USB
based SD Card reader. For the time being I want to do this with the most
simple code possible so I think asynchronous methods would be the best.
Does anyone have any advice on how to use libusb to create such a
program? I am still getting familiar with all the functions the library
has to offer. Is there some specific functions I should be concentrating
on using?
Thank You! :)
P.S.
For my OS which is Ubuntu 11.1 I installed using:
sudo apt-get install libusb-1.0-1-dev
and have compiled using the command line string:
g++ lsusb.c -o lsusb -L/usr/lib/x86_64-linux-gnu/ -lusb-1.0
I also had to change the #include <libusb/libusb.h> to
#include<libusb-1.0/libusb.h> on my particular OS. Since it took me some
time to figure it all out I thought it would be worth sharing. I am
still working on getting the Eclipse environment to locate the library
files but I should be there very soon with it.
of time reading the USB 2.0 specification. I would like to develop a
very simple program to read and write data (files) to and from a USB
based SD Card reader. For the time being I want to do this with the most
simple code possible so I think asynchronous methods would be the best.
Does anyone have any advice on how to use libusb to create such a
program? I am still getting familiar with all the functions the library
has to offer. Is there some specific functions I should be concentrating
on using?
Thank You! :)
P.S.
For my OS which is Ubuntu 11.1 I installed using:
sudo apt-get install libusb-1.0-1-dev
and have compiled using the command line string:
g++ lsusb.c -o lsusb -L/usr/lib/x86_64-linux-gnu/ -lusb-1.0
I also had to change the #include <libusb/libusb.h> to
#include<libusb-1.0/libusb.h> on my particular OS. Since it took me some
time to figure it all out I thought it would be worth sharing. I am
still working on getting the Eclipse environment to locate the library
files but I should be there very soon with it.