[svlug] Example USB code?

Peter Petrakis peter.petrakis at gmail.com
Wed Nov 28 12:27:02 PST 2007


http://lwn.net/Kernel/LDD3/

This chapter is all about USB programming.

http://lwn.net/images/pdf/LDD3/ch13.pdf

I highly recommend the paperback version of book.

http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.23.y.git;a=blob;f=drivers/usb/gadget/dummy_hcd.c;h=d008d1360a7aea6abf391da60a9a8eb0d5c8f5f2;hb=HEAD

That URL is horrible but the file drivers/usb/gadget/dummy_hcd.c is a
emulated USB device
that doesn't require an hardware to use. You could hack that and
litter it with printks to learn
how the request/response mechanisms worked. It's a short read.

Peter

On Nov 28, 2007 2:36 PM, John Conover <conover at rahul.net> wrote:
>
> Is there any example USB code for Linux? I've never programmed it, and
> wanted to tinker.
>
>        Thanks,
>
>        John
>
> --
>
> John Conover, conover at rahul.net, http://www.johncon.com/
>
> _______________________________________________
> svlug mailing list
> svlug at lists.svlug.org
> http://lists.svlug.org/lists/listinfo/svlug
>



-- 
www.alphalinux.org
del.icio.us/peter.petrakis




More information about the svlug mailing list