First off, I'm having trouble understanding the UsbInterfaces structure (the infp[2] field in particular). I've been using http://psp.jim.sh/pspsdk-doc/ for documentation reference, and it just doesn't give me enough information regarding this structure. (UsbInterfaces doc at http://psp.jim.sh/pspsdk-doc/structUsbInterfaces.html)
I checked the PSPLinkUSB source code on SVN and got more confused.
Code: Select all
/* Interfaces */
struct UsbInterface intp = {
0xFFFFFFFF, 0, 1,
};
My second question is regarding some confusion I have on the string descriptor table. I have been consulting http://www.beyondlogic.org/usbnutshell/ ... escriptors to see if I can't figure out how to use them, but I have had no luck.
After looking at the StringDescriptor structure (http://psp.jim.sh/pspsdk-doc/structStri ... iptor.html) I noticed it doesn't really match the format that I found in my reference. Or does it?
Does the descriptor have a max of 32 possible languages or a 16 character Unicode string due to the 32 element array of shorts, or am I completely off? On top of that, I noticed that the UsbDriver structure (http://psp.jim.sh/pspsdk-doc/structUsbDriver.html) only has a single pointer to a StringDescriptor, so how would a string index in my other descriptors be able to associate with any string data if the sole StringDescriptor pointer in UsbDriver is pointing to the string descriptor describing the supported languages?
Thanks in advance :)!!!
- dega