![]()  | 
![]()  | 
![]()  | 
![]()  | 
Get information on the USB host controller and DDK library
#include <sys/usbdi.h>
int usbd_hcd_ext_info( struct usbd_connection *connection,
                       uint32_t cindex,
                       usbd_hcd_info_t *info );
int usbd_hcd_info( struct usbd_connection *connection,
                   usbd_hcd_info_t *info );
libusbdi
You can use the usbd_hcd_ext_info() or usbd_hcd_info() function to obtain information from the USB host controller and DDK library.
If your system has more than one USB chip, you can call usbd_hcd_ext_info() to get information about a specific one. The usbd_hcd_info() function gets information about the first USB chip; calling it is the same as calling usbd_hcd_ext_info() with a cindex argument of 0.
The usbd_hcd_info_t structure is defined as follows:
 
typedef struct usbd_hcd_info {
    uint16_t                 vusb;
    uint16_t                 vusbd;
    char                    controller[8];
    uint32_t                 capabilities;
    uint8_t                  ndev;
    uint8_t                  cindex;
    uint16_t                 vhcd;
    uint32_t                 max_td_io;
    uint8_t                  reserved[12];
  } usbd_hcd_info_t;
It contains at least the following:
| 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()
![]()  | 
![]()  | 
![]()  | 
![]()  |