Hi there.
Well, I was trying to emulate bulkloop example from Cypress kit using a Keil´s Kit and OSR FX2 example from kmdf. I did it using a single interface. Now I want to put it together in a device with 2 interfaces. The second interface will be a HID device. I tried to do this, but windows doesn´t recognizes my device as a composite device. So I realized that I need to use WDF_USB_DEVICE_SELECT_CONFIG_PARAMS_INIT_MULTIPLE_INTERFACES instead WDF_USB_DEVICE_SELECT_CONFIG_PARAMS_INIT_SINGLE_INTERFACE, but I can´t figure out how since in WDF 1.5 there´s no source code using WDF_USB_DEVICE_SELECT_CONFIG_PARAMS_INIT_MULTIPLE_INTERFACES. So, I don´t know how to use it, and I don´t know what is a setting pair, and so on. Can you give me a clue from where to begin and what to do?
Thanks!
Lucas.
Fale com seus amigos de graça com o novo Yahoo! Messenger
http://br.messenger.yahoo.com/
You don’t have to use the setting pairs stuff if you don’t want. For the default settings on all your interfaces and endpoints, just call it like this:
WDF_USB_DEVICE_SELECT_CONFIG_PARAMS_INIT_MULTIPLE_INTERFACES(&usbParams, NULL, NULL);
WdfUsbTargetDeviceSelectConfig(usbDevice, NULL, &usbParams);
That’s it.
If the “original” device with only one interface has already been installed,
and you haven’t changed the Vendor ID / Device ID / Rev number, you should
uninstall it from Device Manager, unplug it, and then plug it back in and
let Windows install it again from scratch. Otherwise, all the interfaces
won’t get installed. At least that’s what I had to do when I went from a
standalone HID device to a HID device with a bulk endpoint.
-Dan
----- Original Message -----
Subject: Using multiple interfaces.
From: Lucas Bracher
> Date: Mon, 29 Jan 2007 23:31:47 -0300 (ART)
> X-Message-Number: 22
>
> Hi there.
> Well, I was trying to emulate bulkloop example from Cypress kit using a
> Keil´s Kit and OSR FX2 example from kmdf. I did it using a single
> interface. Now I want to put it together in a device with 2 interfaces.
> The second interface will be a HID device. I tried to do this, but windows
> doesn´t recognizes my device as a composite device. So I realized that I
> need to use WDF_USB_DEVICE_SELECT_CONFIG_PARAMS_INIT_MULTIPLE_INTERFACES
> instead WDF_USB_DEVICE_SELECT_CONFIG_PARAMS_INIT_SINGLE_INTERFACE, but I
> can´t figure out how since in WDF 1.5 there´s no source code using
> WDF_USB_DEVICE_SELECT_CONFIG_PARAMS_INIT_MULTIPLE_INTERFACES. So, I don´t
> know how to use it, and I don´t know what is a setting pair, and so on.
> Can you give me a clue from where to begin and what to do?
>
> Thanks!
>
> Lucas.
> WDF_USB_DEVICE_SELECT_CONFIG_PARAMS_INIT_MULTIPLE_INTERFACES(&usbParams, NULL, NULL);
The first thing I’ll do if I have to use WDF will be ordering wide monitor…
–PA