
usbd setup vendor() 2006, QNX Software Systems GmbH & Co. KG.
Set up a URB for a vendor-specific transfer
Synopsis:
#include <sys/usbdi.h>
int usbd
setup vendor( struct usbd urb *urb,
uint32 flags, uint16 request,
uint16 rtype, uint16 value,
uint16 index, void *addr,
uint32 len );
Description:
This routine sets up a URB for a vendor-specific transfer.
For this release of the USB SDK, vendor requests are synchronous
only. Therefore, the func parameter in usbd
io() must be NULL.
☞
urb An opaque handle (from usbd alloc urb()).
flags One of the following:
URB DIR IN—Specify incoming (device-to-PC)
transfer.
URB DIR OUT—Specify outgoing (PC-to-device)
transfer.
URB DIR NONE—Don’t specify direction.
URB SHORT XFER OK—Allow short transfers.
request A device-specific request.
rtype Type of request (e.g.
USB RECIPIENT DEVICE,
USB RECIPIENT INTERFACE,
USB RECIPIENT ENDPOINT, USB RECIPIENT OTHER,
USB TYPE STANDARD, USB TYPE CLASS,
USB TYPE VENDOR).
value This varies, depending on the request. It’s used for
passing a parameter to the device.
90 Chapter 4 USB Library Reference November 2, 2006
Comentarios a estos manuales