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

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,
                   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()).
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;
} usbd_hcd_info_t;

The vusb and vusbd fields hold the version numbers of the USB stack and the SDK; controller and capabilities hold the name and capabilities of the USB host controller.

Returns:

EOK
Success.

Classification:

QNX 6, 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]