Mailing Lists: Apple Mailing Lists

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

reading wif ControlRequest



--- Daniel Sumorok <email@hidden> wrote:

> Hi,
> 	You can use the ControlRequest() method, defined in
> IOUSBPipe.h.
> 
> 	-Dan
> 
> On Sun, 9 Jan 2005, JX the nuts wrote:
> 
> > hi all!!
> > gt a very simple question in mind and hope someone
> can
> > enlighten me!!!
> > how do i read data that is sent from a control
> pipe???
> > can i use the readpipe method?
> >
>  _______________________________________________


hihi!!!
thks for replying!!!
but how do i use the ControlRequest() method to read
data??? i mean do i just assign the values "kUSBIn "
to rdDirection and "readbuffer" to pData as shown
below? if so, does the readbuffer store the data that
is read? pls reply!! thks alot!! cheers :-)

OUSBDevRequest   request;
char              *readbuffer;

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

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




		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail
 _______________________________________________
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: USB (From: Daniel Sumorok <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.