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_status.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_status.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_status.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_status.html on line 8
Get specific device status
#include <sys/usbdi.h>
int usbd_status( struct usbd_device *device,
_uint16 rtype,
_uint16 index,
void *addr,
_uint32 len )
- device
- An opaque handle used to identify the USB device.
- 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).
- index
- This varies, depending on the request. It's used for passing a parameter to the device.
- addr
- Address for start of transfer — you must
use the buffer allocated by usbd_alloc().
- len
- The length (in bytes) of the data transfer.
libusbdi
You use the usbd_status() function to get
specific device status.
- EOK
- Success.
- EMSGSIZE
- Buffer too small for descriptor.
- ENOMEM
- No memory for URB.
- ENODEV
- Device was removed.
QNX Neutrino, QNX 4
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
No |
Thread |
Yes |
usbd_descriptor(),
usbd_feature(),
usbd_io(),
usbd_setup_bulk(),
usbd_setup_control(),
usbd_setup_interrupt(),
usbd_setup_isochronous(),
usbd_setup_vendor()
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_status.html on line 163
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_status.html on line 163