help for understand the usb calls:

Hans Petter Selasky hselasky at c2i.net
Tue Oct 9 12:54:24 PDT 2007


On Tuesday 09 October 2007, GAURAV GUPTA wrote:
>  Hi all,
>
> My name is tarru .i am trying to understand the usb call .
>
> and currently i got struck and i would like to know the difference
> between  functions.
>
>
> usbd_transfer()
>
> and
>
> usbd_do_request()
>
> are we doing anything different ? .i  confused since in both cases we are
> transferring/queering for data to usb device
>
> Please let me know if anybody can help on this
>
> Thanks,
>
> Tarru

Hi,

"usbd_do_request()" is a wrapper function for "usbd_transfer()" that does 
synchronous control transfers on endpoint zero only.

--HPS


More information about the freebsd-usb mailing list