Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/usb/usbd_setup_vendor.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/usb/usbd_setup_vendor.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/usb/usbd_setup_vendor.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/usb/usbd_setup_vendor.html on line 8
Set up a URB for a vendor-specific transfer
#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 );
- 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 the direction.
You can optionally OR in the following:
- URB_SHORT_XFER_OK—allow short transfers.
- request
- A device-specific request.
- rtype
- The type of request; one of the following:
- USB_RECIPIENT_DEVICE
- USB_RECIPIENT_INTERFACE
- USB_RECIPIENT_ENDPOINT
- USB_RECIPIENT_OTHER
ORed with one of the following:
- 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.
- index
- This varies, depending on the request. It's used for passing a parameter to the device.
- addr
- The address for the start of the transfer.
You must use the buffer allocated by
usbd_alloc().
- len
- The length (in bytes) of the data transfer.
libusbdi
This routine sets up a URB for a vendor-specific transfer.
|
For this release of the USB DDK, vendor requests are
synchronous only. Therefore,
the func parameter in usbd_io() must
be NULL. |
- EOK
- Success.
QNX Neutrino, QNX 4
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
No |
Thread |
Yes |
To ensure that the correct physical address will be used,
you must use the buffer allocated by usbd_alloc() for the
addr parameter.
usbd_descriptor(),
usbd_feature(),
usbd_io(),
usbd_setup_bulk(),
usbd_setup_control(),
usbd_setup_interrupt(),
usbd_setup_isochronous(),
usbd_status()
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/usb/usbd_setup_vendor.html on line 233
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/usb/usbd_setup_vendor.html on line 233