Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Access to the strings indexed by the IOUSBDeviceDescriptor



Thanks Nano.

/Don

Fernando Urbina <email@hidden> on Tuesday, April 19, 2005 at 4:07 PM
-0500 wrote:
>And of course, you can look at the IOUSBFamily in Darwin to see how we do
>it.  IOUSBDevice.cpp has the GetStringDescriptor().  It does a lot of
>error checking and deals with the correct endianness and stuff...
>
>
>--
>Fernando Urbina
>USB Technology Team
>Apple Computer, Inc.
>
>
>On Apr 19, 2005, at 2:58 PM, David Ferguson wrote:
>
>
>
>To get a string, you use the standard device requests (GET_DESCRIPTOR)
>described in the USB spec, chapter 9.   Your code to do that might look
>something like (not tested, top of my head, be on the lookout for
>possiblebyte-swapping issues in the wValue/wIndex fields):
>
>



Don Clark
Onset Computer Corporation
Bourne, MA
www.onsetcomp.com
(508) 743-3175


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to email@hidden

References: 
 >Re: Access to the strings indexed by the IOUSBDeviceDescriptor (From: Fernando Urbina <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.