(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.
Sending data to usb function
Sending data to usb function
Sorry, for my poor English.~
- 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) .
- 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) .