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 

UsbData Struct

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



Joined: 22 Mar 2009
Posts: 35

PostPosted: Fri Mar 27, 2009 6:19 am    Post subject: UsbData Struct Reply with quote

this is all exists in the documentation of psp usb:
Quote:
Padded data structure, padding is required otherwise the USB hardware crashes.

I'm trying not to use this struct to define my own device but the usb hardware crashes. I guess it is this padding problem. (I think this is what happened atleast! everything froze and PSP shuts down after a few secs)

anyone can explain more about this, or any reference? (TyRaNiD?
r u there?) :p
Back to top
View user's profile Send private message
MBx



Joined: 22 Mar 2009
Posts: 35

PostPosted: Fri Mar 27, 2009 7:18 am    Post subject: Reply with quote

It seems that no one understands me that I got no answers yet :(
let me describe myself more:

- I'm trying to define and use a new device descriptor and configuration for usb.
- the only working example of a usb driver (what I've seen around) is usbhostfs.
- usbhostfs uses UsbData to set all the configs.
- UsbData do not follow all the USB standards (for example take a look at a usb keyboard config and desc)

1. is it possible to send arbitrary descriptions and configs or the psp is LIMITED to this format? (I guess that it is possible to define all the information in a byte array, cast it to void* for UsbDriver::devp_hi and ... and passing them to sceUsbbdRegister)
2. if yes, what is the padding problem described shortly in docs?

I hope someone can help me now :)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP 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