This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Get information on the USB host controller and SDK library
#include <sys/usbdi.h> int usbd_hcd_info( struct usbd_connection *connection, _uint32 cindex, usbd_hcd_info_t *info );
You use the usbd_hcd_info() function to obtain information from the USB host controller and SDK library.
typedef struct usbd_hcd_info { _uint16 vusb; _uint16 vusbd; char controller[8]; _uint32 capabilities; _uint8 ndev; _uint8 reserved[1]; _uint16 vhcd; _uint8 reserved[12]; } usbd_hcd_info_t;
The vusb, vusbd, and vhcd fields hold the version numbers of the USB stack, the SDK, and the HCD; controller and capabilities hold the name and capabilities of the USB host controller; ndev contains the number of devices currently connected.
Safety: | |
---|---|
Cancellation point | Yes |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |
usbd_args_lookup(), usbd_configuration_descriptor(), usbd_device_lookup(), usbd_device_extra(), usbd_device_descriptor(), usbd_endpoint_descriptor(), usbd_hub_descriptor(), usbd_interface_descriptor(), usbd_languages_descriptor(), usbd_parse_descriptors(), usbd_string(), usbd_urb_status()