[Previous] [Contents] [Index] [Next]

Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

usbd_hcd_info()

Get information on the USB host controller and SDK library

Synopsis:

#include <sys/usbdi.h>

int usbd_hcd_info( struct usbd_connection *connection,
                   _uint32 cindex, usbd_hcd_info_t *info );

Description:

You use the usbd_hcd_info() function to obtain information from the USB host controller and SDK library.

connection
Identifies the USB stack (from usbd_connect()).
cindex
Gets information about a specific host controller.
info
A pointer to the usbd_hcd_info_t data structure, which is filled in by usbd_hcd_info(). The structure contains at least the following:
 
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.

Returns:

EOK
Success.

Classification:

QNX Neutrino, QNX 4

Safety:
Cancellation point Yes
Interrupt handler No
Signal handler No
Thread Yes

See also:

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()


[Previous] [Contents] [Index] [Next]