| View previous topic :: View next topic |
| Author |
Message |
moofasa
Joined: 18 Feb 2005 Posts: 7 Location: S.Korea
|
Posted: Wed Jun 15, 2005 12:29 am Post subject: Sending data to usb function |
|
|
(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. _________________ Sorry, for my poor English.~ |
|
| Back to top |
|
 |
ole
Joined: 08 May 2004 Posts: 92 Location: Czech Republic
|
Posted: Wed Jun 15, 2005 5:30 pm Post subject: |
|
|
- 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) . |
|
| Back to top |
|
 |
moofasa
Joined: 18 Feb 2005 Posts: 7 Location: S.Korea
|
Posted: Tue Jun 21, 2005 3:32 pm Post subject: |
|
|
thank you, ole.
finally my Driving force is dancing.
and hardcore reverse engineering is remained. _________________ Sorry, for my poor English.~ |
|
| Back to top |
|
 |
|