Belkin F8E211 Uživatelská příručka Strana 86

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 107
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 85
usbd
_
setup
_
control() © 2007, QNX Software Systems GmbH & Co. KG.
Set up a URB for a control transfer
This function isn’t currently implemented. To set up a URB for a control transfer, use
usbd
_
setup
_
vendor() instead.
Synopsis:
#include <sys/usbdi.h>
usbd_setup_control( struct usbd_urb *urb,
_uint32 flags,
_uint16 request,
_uint16 rtype,
_uint16 value,
_uint16 index,
void *addr,
_uint32 len );
Arguments:
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.
72 Chapter 4 USB Library Reference September 10, 2007
Zobrazit stránku 85
1 2 ... 81 82 83 84 85 86 87 88 89 90 91 ... 106 107

Komentáře k této Příručce

Žádné komentáře