Re: not getting vendor specific usb device attach call back
- From: klaus.minarik@xxxxxx
- Date: Wed, 04 Jul 2007 02:22:29 -0700
On 3 Jul., 13:06, Rajul <member1...@xxxxxxxxxxxxxxxxxxxxxx> wrote:
I am trying to attach a MTP device having vendor specific class code of
0xff
but not been able to dynamically register aUSBdevice having this class
code. All other device like Mouse , keyboard and PTP are working with
their respective class code.
Iam registering usbSicdAttachCallback fun with USBD core through below
mentioned USBD API
usbdDynamicAttachRegister (usbdClientHandle,
0xff,/*class code*/
0xff, /*sub class code*/
USBD_NOTIFY_ALL,
usbSicdAttachCallback) = OK)
O.S - Vxworks 5.0
Plz help me ..
--
You can find your device in your attach callback with calls to
usbdDescriptorGet to ask for the manufacturer/product index and string
usbdDescriptorGet (usbHandle, nodeId, USB_RT_STANDARD |
USB_RT_DEVICE, USB_DESCR_DEVICE,
0, 0, USB_DEVICE_DESCR_LEN,
(UINT8 *) pDevDescr,
&actLen)
usbdDescriptorGet (usbHandle, nodeId, USB_RT_STANDARD |
USB_RT_DEVICE, USB_DESCR_STRING,
pDevDescr->manufacturerIndex,
0x0409, /* unicode code for English */
USB_MAX_DESCR_LEN,
(UINT8 *) pString,
&actLen)
.
- Follow-Ups:
- References:
- Prev by Date: Re: Increased Boot Time When Booting from FLASH w/ Ethernet Cable Disconnected
- Next by Date: Re: not getting vendor specific usb device attach call back
- Previous by thread: not getting vendor specific usb device attach call back
- Next by thread: Re: not getting vendor specific usb device attach call back
- Index(es):
Relevant Pages
|