UsbData Struct

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
MBx
Posts: 35
Joined: Sun Mar 22, 2009 12:52 am

UsbData Struct

Post by MBx »

this is all exists in the documentation of psp usb:
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
MBx
Posts: 35
Joined: Sun Mar 22, 2009 12:52 am

Post by MBx »

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 :)
Post Reply