Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
91 user(s) are online (54 user(s) are browsing Forums)

Members: 1
Guests: 90

AmigaSociety, more...

Headlines

 
  Register To Post  

[USB SDK 53.1] USBCMD_HCDQuery
Just popping in
Just popping in


See User information
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.

Go to top
Re: [USB SDK 53.1] USBCMD_HCDQuery
Not too shy to talk
Not too shy to talk


See User information
@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.”
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project