diff options
author | Ben Hilburn <ben.hilburn@ettus.com> | 2014-12-18 15:37:20 -0800 |
---|---|---|
committer | Ben Hilburn <ben.hilburn@ettus.com> | 2014-12-18 15:37:20 -0800 |
commit | 3c5fe0a201d78a8732aad31a71bf806e00c89db1 (patch) | |
tree | b5460e28d3f0d727f8eeb83ed5fb82dd95a80ef8 /host/include | |
parent | 8c87a524668355eee2c911b512c91be843624806 (diff) | |
download | uhd-3c5fe0a201d78a8732aad31a71bf806e00c89db1.tar.gz uhd-3c5fe0a201d78a8732aad31a71bf806e00c89db1.tar.bz2 uhd-3c5fe0a201d78a8732aad31a71bf806e00c89db1.zip |
Adding support for NI VID + PIDs for USRP B2xx devices.
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/transport/usb_device_handle.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/host/include/uhd/transport/usb_device_handle.hpp b/host/include/uhd/transport/usb_device_handle.hpp index fdea9e2be..bf122f549 100644 --- a/host/include/uhd/transport/usb_device_handle.hpp +++ b/host/include/uhd/transport/usb_device_handle.hpp @@ -41,6 +41,7 @@ namespace uhd { namespace transport { class UHD_API usb_device_handle : boost::noncopyable { public: typedef boost::shared_ptr<usb_device_handle> sptr; + typedef std::pair<boost::uint16_t, boost::uint16_t> vid_pid_pair_t; /*! * Return the device's serial number @@ -83,6 +84,8 @@ public: * \return a vector of USB device handles that match vid and pid */ 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); + }; //namespace usb |