LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion
User Name
Password
LinuxAnswers Discussion This forum is to discuss articles posted to LinuxAnswers.

Notices

Reply
 
LinkBack Search this Thread
Old 08-11-2009, 06:30 PM   #16
reinoud
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Rep: Reputation: 0
compiler warnings fixed


Most Compiler problems fixed by including:

stdbool.h (otherwise it doesn't know bool and true) and string.h (to remedy warnings about strlen)
Also, in C99 i can't use for (int i=0 bla bla)
first define int i; for (i=0 blabla) does the job.

Also rename read to read_from_device and write to write_to_device
 
Old 03-23-2010, 07:15 AM   #17
muthumb14
LQ Newbie
 
Registered: Jun 2006
Posts: 2

Rep: Reputation: 0
What about applications development

yes I agree that we can detaect the mounted USB through LIBUSB, could we write the program to detect the FILEs in the USB and to opne the FILEs etc..

Rgds,
Muthu
 
Old 11-18-2010, 02:38 AM   #18
arkroan
LQ Newbie
 
Registered: Nov 2010
Location: UK
Distribution: Ubuntu
Posts: 2

Rep: Reputation: 0
Quote:
Configuration and Endpoints are one of the two important descriptors of any USB device. These descriptors are defined using the
Does this guide end at this point?? I am not able to see any more of it.
 
Old 11-18-2010, 02:52 AM   #19
arkroan
LQ Newbie
 
Registered: Nov 2010
Location: UK
Distribution: Ubuntu
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by alain91 View Post
Hello,

Here is the end of the article :



Important attributes of USB devices useful in device driver coding
Configuration and Endpoints are one of the two important descriptors of any USB device. These desciptors are defined using the “struct usb_config_descriptor” and “struct_usb_endpoint_descriptor” respectively .

dev->descriptor.idVendor : Reveals the Vendor-Id of the USB device connected to the system.

dev->descriptor.idProduct : Reveals the Product-Id of the USB device connected to the system.

dev->descriptor.iManufacturer : Reveals the name of the Manufacturer USB device connected to the system.

EndpointAddress:Combination of endpoint address and enpoint direction on a USB device.

InterfaceNumber : One of the several interfaces that is allocated to the connected USB device.

AlternateSetting:This is part of the a single interface allocated to the USB device.


Prerequites for Libusb programming
Linux system with Kernel 2.4 above series.
Proficiency in C language.
Good understanding of USB device internals.
Idea about USBFS.
Oh now i see it.. Sorry for the previous post.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DISCUSSION: Installing new accelerated Nvidia Linux Drivers in 5 EASY Steps HolyLiaison LinuxAnswers Discussion 36 03-31-2010 03:41 PM
Does Linux Have Game? - a discussion of games and graphics drivers XavierP Linux - News 1 01-03-2005 08:39 AM
developing device drivers djgerbavore Linux - Hardware 1 07-30-2004 01:49 PM
device file for scanner with libusb fredgt Linux - Hardware 0 04-08-2004 10:47 AM
OSS API - opening /dev/dsp when device busy vasudevadas Programming 10 12-02-2003 12:11 PM


All times are GMT -5. The time now is 12:46 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration