In the buffer you pass to usb_control_msg(). Don't pay attention to the implementation of usb_control_msg(), just pay attention to the API.
You specify the direction by bitwise-or'ing the endpoint address with USB_ENDPOINT_IN or USB_ENDPOINT_OUT. JE On Thu, Jan 02, 2003, Dencker <[EMAIL PROTECTED]> wrote: > I�m happy to hear that this is supported. > > Well, my code (on the host side) isn�t running yet, since the USB device with which >I will communicate isn�t ready. So, I haven�t actually tried anything. But by looking >at the code I get confused. > > It seems like the input parameters of the usb_control_msg function are copied into >the "ctrl" struct. "ctrl" is then used when calling the ioctrl function, but that�s >it. Where and how is the data returned? > > Thanks > > DD > > ----- Original Message ----- > From: "Johannes Erdfelt" <[EMAIL PROTECTED]> > To: "Dencker" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Thursday, January 02, 2003 8:55 PM > Subject: Re: [Libusb-devel] Return values from control transfers. > > > > On Thu, Jan 02, 2003, Dencker <[EMAIL PROTECTED]> wrote: > > > I have a question concerning Control Transfers. > > > > > > It should be possible to send some kind of command to the USB device using a >Control Transfer. It should also be possible to receive small amounts of data from >the USB device using this transfer type. > > > > > > The libusb function usb_control_msg doesn't seem to support this. How come? > > > > It does support that. I'll have to ask you why you think it doesn't. > > > > JE > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Libusb-devel mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/libusb-devel > > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
