Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
87 user(s) are online (74 user(s) are browsing Forums)

Members: 2
Guests: 85

samo79, orgin, more...

Headlines






[USB SDK 53.1] USBCMD_HCDQuery
Just popping in
Joined:
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 ???

Thanks.

   Report Go to top

Re: [USB SDK 53.1] USBCMD_HCDQuery
Not too shy to talk
Joined:
2006/12/1 23:50
From Skærbæk. Denmark
Posts: 266
@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

_________________
“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