#include <uhd/transport/usb_device_handle.hpp>
Public Types | |
typedef boost::shared_ptr< usb_device_handle > | sptr |
typedef std::pair< boost::uint16_t, boost::uint16_t > | vid_pid_pair_t |
Public Member Functions | |
virtual | ~usb_device_handle (void) |
virtual std::string | get_serial () const =0 |
virtual std::string | get_manufacturer () const =0 |
virtual std::string | get_product () const =0 |
virtual boost::uint16_t | get_vendor_id () const =0 |
virtual boost::uint16_t | get_product_id () const =0 |
virtual bool | firmware_loaded ()=0 |
Static Public Member Functions | |
static std::vector< usb_device_handle::sptr > | get_device_list (boost::uint16_t vid, boost::uint16_t pid) |
static std::vector< usb_device_handle::sptr > | get_device_list (const std::vector< usb_device_handle::vid_pid_pair_t > &vid_pid_pair_list) |
Device handle class that represents a USB device Used for identifying devices on the USB bus and selecting which device is used when creating a USB transport. A minimal subset of USB descriptor fields are used. Fields can be found in the USB 2.0 specification Table 9-8 (Standard Device Descriptor). In addition to fields of the device descriptor, the interface returns the device's USB device address.
Note: The USB 2.0 Standard Device Descriptor contains an index rather then a true descriptor serial number string. This interface returns the actual string descriptor.
typedef boost::shared_ptr<usb_device_handle> uhd::transport::usb_device_handle::sptr |
typedef std::pair<boost::uint16_t, boost::uint16_t> uhd::transport::usb_device_handle::vid_pid_pair_t |
|
virtual |
|
pure virtual |
Test whether the firmware is loaded on the device.
|
static |
Return a vector of USB devices on this host
|
static |
|
pure virtual |
Return the device's manufacturer identification string
|
pure virtual |
Return the device's product identification string
|
pure virtual |
Return the device's Product ID (usually assigned by manufacturer)
|
pure virtual |
Return the device's serial number
|
pure virtual |
Return the device's Vendor ID (usually assigned by the USB-IF)