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: need desperate help!!



These are the fields defined in Chapter 9 of the USB Spec (this is where the standard requests are documented). You can download that spec from here:

http://www.usb.org/developers/docs

For vendor-specific requests, such as what you've shown below -- you will need the vendor documentation to tell you what to put in those fields. We certainly don't know.

Regards,

David Ferguson
USB Software Team
Apple Computer

At 6:40 PM -0800 1/6/05, She Jian, Chia wrote:
thks barry for the invaluable advice!!!
sorry for bothering u guys again but then
was just wondering for the ControlRequest method, how
do i know the values of request.wValue,etc. i have
already read through the documentations but they are
kind of profound so could anyone explain a little more
in dept to me? Thanks!!! :-)


OUSBDevRequest request; char *readbuffer;

request.bmRequestType = USBmakebmRequestType(kUSBIn,
kUSBVendor,
kUSBDevice);
request.bRequest = GET_LUM_CTL; //
request.wValue = BRIGHTNESS_FORMATTER; //
request.wIndex = 0;
request.wLength = 0;
request.pData = &readbuffer;

result = (*intf)->ControlRequest(intf, 0, &request);

_______________________________________________
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: need desperate help!! (From: "She Jian, Chia" <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.