Page 1 of 1

Sending data to usb function

Posted: Wed Jun 15, 2005 12:29 am
by moofasa
(title renamed)
I'm writting a wheel client program,
especially for Logitech Driving Force.
it works on reading data from the function.
(90% of code is from ps2mouse driver)

but I met a wall,
currently have no idea on sending feedback data to the function.
How can i use the second data endpoint to send data?
Should i configure the device in differently way?

If i'm misunderstanding something, please let me know.
thanks in advance.

Posted: Wed Jun 15, 2005 5:30 pm
by ole
- get the endpoint descriptor
- find out what type the endpoint is (control, bulk, isochronous etc. - it's stored in the descriptor)
- find out wheter the endpoint is Input or Output endpoint (you need output endpoint if I understand well...)
- open the endpoint
- send the data according the type of the endpoint (control transfer, bulk transfer etc).
If the endpoint is bulk type you may look into usb_mass sources (in the CVS) .

Posted: Tue Jun 21, 2005 3:32 pm
by moofasa
thank you, ole.
finally my Driving force is dancing.

and hardcore reverse engineering is remained.