| View previous topic :: View next topic |
| Author |
Message |
ole
Joined: 08 May 2004 Posts: 92 Location: Czech Republic
|
Posted: Sat May 22, 2004 4:57 am Post subject: usbd.irx comaptibility.... |
|
|
is usbd.irx compatible with npm_usbd.irx (loaded with naplink)?
I can't use usbd.irx beacause the npm_usbd.irx is sitting on my IOP. When I reset IOP (to get rid of the npm_usbd.irx) the host: and printf are lost :(
Ole |
|
| Back to top |
|
 |
Drakonite Site Admin

Joined: 17 Jan 2004 Posts: 989
|
Posted: Sat May 22, 2004 5:09 am Post subject: |
|
|
No, you cannot use both usbd.irx and npm_usbd.irx at the same time. That would be like having two different people drive the same car at the same time ;)
I haven't used them, but I do not think they are compatible enough for a drop in replacement either, but I don't know for sure. _________________ Shoot Pixels Not People!
Makeshift Development |
|
| Back to top |
|
 |
mrbrown
Joined: 17 Jan 2004 Posts: 1536
|
Posted: Sat May 22, 2004 6:12 am Post subject: |
|
|
| They are API-compatible. |
|
| Back to top |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Sat May 22, 2004 3:09 pm Post subject: |
|
|
Yes they are API compatible _but_ at least with the keyboard + mouse drivers I wrote just skipping the load of the usbd will not work for some unexplainable reason.
To get my solitaire demo working in naplink you have to reset the IOP, only way I could find to get it to play nice. |
|
| Back to top |
|
 |
ole
Joined: 08 May 2004 Posts: 92 Location: Czech Republic
|
Posted: Sat May 22, 2004 11:03 pm Post subject: |
|
|
Thanks!
that's good news! I will try to dig some data out of my usb flash disk (through ps2lib ofcourse...) and post some info if I get somewhere.
hm..... still no luck :
how to get for example the 3rd endpoint from interface?
If I use this:
endpoint = (UsbEndpointDescriptor*) UsbGetDeviceStaticDescriptor(devID, NULL, USB_DT_ENDPOINT);
This way I can get the first endpoint only. Is it possible to define the index of the item (endpoint) somehow/somewhere in this function?
If I use this:
ret = UsbGetEndpointDescriptor(epID, USB_DT_ENDPOINT, 3, 0, &endpoint, 7, NULL, NULL);
This way i get ret =0, but the endpoint data are invalid and allways the same even when the index is different. (This could be problem with my incompatible usbd irx...?).
Another question:
How to get the DEFAULT_CONTROL_PIPE epID? It seems to me that i cannot obtain correct default control pipe edID when I'm not able to get correct EndpointDescriptor. The UsbOpenEndpoint(devID, &endpoint) function creates some epID for me, but using of this epID gives me no valid results (the endpoint structure was filled by zeros before the open function was called).
So I'm stuck...Any Idea? |
|
| Back to top |
|
 |
ole
Joined: 08 May 2004 Posts: 92 Location: Czech Republic
|
Posted: Sun May 23, 2004 4:45 am Post subject: |
|
|
endp = (UsbEndpointDescriptor *) ((char *) endp + endp->bLength);
ufff.... didn't expected anything like that should work :) - thanks TyRaNiD. |
|
| Back to top |
|
 |
|