Tech Support > Microsoft Windows > Drivers > Query on USB bus driver
Query on USB bus driver
Posted by satheesh.k@globaledgesoft.com on July 27th, 2006


Hi all,
Currently iam working in faking a usb bus driver.
I am catching all the query asked from the class driver which is on the

top layer of my bus driver.

The problem what i am facing now is in setting the configuration for
the class driver?
The class driver inorder to set a configuration creating a URB by
passing the corresponding configuration descriptor to the bus driver
which it wants to set.


In response to this query my bus driver has to send a configration
handle back to the class driver.


How a bus driver will get a handle to a configration? What is the need
of this configration handle?
Similarly for the interface and endpoints?


Please help me

Posted by Doron Holan [MS] on July 28th, 2006


what are you really trying to do? simulate a usb device before you have the
actual device? if so, there is technology in the WDK which will help you do
this w/out having to write a fake usb bus driver.

to answer your question, the config handle is opaque to the class driver,
it's just a value. you can define it's meaning. same with USBD_PIPE_HANDLEs
that you must return in response to the select config/interface. the class
driver treats them as opaque values to put into the URB and you can use them
for whatever you want.

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


<satheesh.k@globaledgesoft.com> wrote in message
news:1153995439.549839.246680@s13g2000cwa.googlegr oups.com...


Posted by satheesh.k@globaledgesoft.com on July 28th, 2006



Doron Holan [MS] wrote:

Thank for your valuable reply

Actually I am using the ddk sample(toaster / bus) code to do this job.
There i have an application code which will simulate a usb device.
But which one are u referring to...???


Posted by satheesh.k@globaledgesoft.com on July 28th, 2006



Doron Holan [MS] wrote:

Thank for your valuable reply

Actually I am using the ddk sample(toaster / bus) code to do this job.
There i have an application code which will simulate a usb device.
But which one are u referring to...???


Posted by Eliyas Yakub [MSFT] on July 28th, 2006


Go thru this Winhec presentation.

http://download.microsoft.com/downlo...EV098_WH06.ppt

--
-Eliyas
This posting is provided "AS IS" with no warranties, and confers no rights.
http://www.microsoft.com/whdc/driver/tips/default.mspx





Similar Posts