Remember me

Lost Password?

Register now!


Who's Online
53 user(s) are online (40 user(s) are browsing Forums)

Members: 0
Guests: 53



  Register To Post

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 ???


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

See User information

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.”
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-2016 The XOOPS Project