Re: Question about _URB_SELECT_CONFIGURATION
- From: "Stan Mitchell" <stanlmitchell@xxxxxxxxxxxxxxxx>
- Date: Mon, 23 Jul 2007 09:38:40 -0700
I'm using the same calling sequence (the interfacelist is NULL terminated).
I don't know why you are seeing different behavior.
Perhaps it is affected by the layout of the configuration descriptor.
-Stan
"huangjj" <huangjj@xxxxxxxxxxx> wrote in message
news:%23hqtTWRzHHA.1204@xxxxxxxxxxxxxxxxxxxxxxx
I have multiple alternate settings.
I use isousb sample code of XPDDK to test on Win2000 SP4.
I use USBD_ParseConfigurationDescriptorEx like the following
way to prepare the interface list for alternate setting 1.
I can get the pointer to the interface descriptor of alternate setting 1
and
set it in the associated interface list.
After Urb is passed down and completed, I also get all information of
alternate setting 1 successfully.
However, I didn't see set interface command is sent on USB bus.
// get pointer to interface descriptor with alternate setting 1
interfaceDescriptor =
USBD_ParseConfigurationDescriptorEx(
ConfigurationDescriptor,
ConfigurationDescriptor,
interfaceNumber, // interface number
1, //alt setting 1
-1, // hub class
-1, // subclass, don't care
-1); // protocol, don't care
if (interfaceDescriptor)
{
interfaceList->InterfaceDescriptor = interfaceDescriptor;
interfaceList++;
}
"Stan Mitchell" <stanlmitchell@xxxxxxxxxxxxxxxx>
If your device only has AlternateSetting 0 for that interface then the
SELECT_INTERFACE request will _not_ be sent.
.
- References:
- Question about _URB_SELECT_CONFIGURATION
- From: huangjj
- Re: Question about _URB_SELECT_CONFIGURATION
- From: Stan Mitchell
- Re: Question about _URB_SELECT_CONFIGURATION
- From: huangjj
- Re: Question about _URB_SELECT_CONFIGURATION
- From: Stan Mitchell
- Re: Question about _URB_SELECT_CONFIGURATION
- From: huangjj
- Question about _URB_SELECT_CONFIGURATION
- Prev by Date: Re: Chained MDLs in WDF
- Next by Date: Fixing a bug in executable file
- Previous by thread: Re: Question about _URB_SELECT_CONFIGURATION
- Next by thread: Re: Question about _URB_SELECT_CONFIGURATION
- Index(es):
Relevant Pages
|