Mailing Lists: Apple Mailing Lists

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

general OS X user-space GET_DESCRIPTOR device request?



The string is stored in the device. It is retrieved by a GET_DESCRIPTOR device request, see chapter 9 of the USB spec. The string is in Unicode format.

How you'd do anything about this in X I don't know yet.

Hi,
IOUSBLib has nice friendly calls such as GetDevice<whatever> but what about more generalised usage of bRequest fields for obtaining other info. Using the example of USBGetManufacturerStringIndex, how can you, in the user-space, issue a GET_DESCRIPTOR call to retrieve the relevant info, specifying the bRequest, wValue, wIndex fields etc. I guess you'd use something along the lines of kUSBRqGetDescriptor (or kUSBRqGetStatus or whatever) I'm just not entirely sure how to do this, or if ot's possible to, from the user-space in OS X.
Cheers,


ben
_______________________________________________
usb mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/usb
Do not post admin requests to the list. They will be ignored.



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.