Not too shy to talk
Joined: 2006/12/1 23:50 Last Login
: Today 0:06
From Skærbæk. Denmark
Group:
Registered Users
|
@Gilloo
I'm think I'm the best one too anser that. as I was the one too implement it.
The USBCMD_HCDQuery is meant too be used too retrieved information on send/transfered data on a hcd driver.
What you do is first define a the USBHCDQuery structure, do it like this
struct USBHCDQuery q;
q.HCDIndex = x
x = -1 for status on all hcds or else use 0, 1, 2, 3 ... This is the only value you need to setup first, the rest will be valid after it returns.
Now you need to setup the USBIOReq structure
ioreq->io_Command = USBCMD_HCDQuery; ioreq->io_Length = sizeof( struct USBHCDQuery ); ioreq->io_Data = q; DoIO( ioreq );
Now when DoIO() return the Status values in the Query structure will indicate who much is send or transfered.
RWO
|