Remember me

Lost Password?

Register now!


Who's Online
90 user(s) are online (71 user(s) are browsing Forums)

Members: 2
Guests: 88

samo79, LiveForIt, more...


Just popping in
2008/1/29 14:52
From Grenoble, Is�re, Dauphin�, Rh�ne-Alpes, France, Europe
Posts: 27
I suppose that USBHCDQuery points on io_Data of USBIOReqHCD struct when USBCMD_HCDQuery is in io_Command ?

Where to find an HCD sample code ???


   Report Go to top

Re: [USB SDK 53.1] USBCMD_HCDQuery
Not too shy to talk
2006/12/1 23:50
From Skærbæk. Denmark
Posts: 277

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.


“The best thing about a boolean is even if you are wrong, you are only off by a bit.”
   Report Go to top

[Advanced Search]

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project