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



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):


 _______________________________________________
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: 
 >Access to the strings indexed by the IOUSBDeviceDescriptor (From: Don Clark <email@hidden>)
 >Re: Access to the strings indexed by the IOUSBDeviceDescriptor (From: David Ferguson <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.