forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sending data to usb function

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
moofasa



Joined: 18 Feb 2005
Posts: 7
Location: S.Korea

PostPosted: Wed Jun 15, 2005 12:29 am    Post subject: Sending data to usb function Reply with quote

(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
View user's profile Send private message MSN Messenger
ole



Joined: 08 May 2004
Posts: 92
Location: Czech Republic

PostPosted: Wed Jun 15, 2005 5:30 pm    Post subject: Reply with quote

- 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
View user's profile Send private message
moofasa



Joined: 18 Feb 2005
Posts: 7
Location: S.Korea

PostPosted: Tue Jun 21, 2005 3:32 pm    Post subject: Reply with quote

thank you, ole.
finally my Driving force is dancing.

and hardcore reverse engineering is remained.
_________________
Sorry, for my poor English.~
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group