USRP Hardware Driver and USRP Manual  Version: 4.7.0.0
UHD and USRP Manual
usb_device_handle.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2010-2013 Ettus Research LLC
3 // Copyright 2018 Ettus Research, a National Instruments Company
4 //
5 // SPDX-License-Identifier: GPL-3.0-or-later
6 //
7 
8 #pragma once
9 
10 #include <uhd/config.hpp>
12 #include <stdint.h>
13 #include <memory>
14 #include <string>
15 #include <vector>
16 
17 namespace uhd { namespace transport {
18 
32 {
33 public:
34  typedef std::shared_ptr<usb_device_handle> sptr;
35  typedef std::pair<uint16_t, uint16_t> vid_pid_pair_t;
36 
37  virtual ~usb_device_handle(void);
38 
43  virtual std::string get_serial() const = 0;
44 
49  virtual std::string get_manufacturer() const = 0;
50 
55  virtual std::string get_product() const = 0;
56 
61  virtual uint16_t get_vendor_id() const = 0;
62 
67  virtual uint16_t get_product_id() const = 0;
68 
73  virtual bool firmware_loaded() = 0;
74 
79  static std::vector<usb_device_handle::sptr> get_device_list(
80  uint16_t vid, uint16_t pid);
81  static std::vector<usb_device_handle::sptr> get_device_list(
82  const std::vector<usb_device_handle::vid_pid_pair_t>& vid_pid_pair_list);
83 
84 
85 }; // namespace usb
86 
87 }} // namespace uhd::transport
boost::noncopyable noncopyable
Definition: noncopyable.hpp:45
Definition: usb_device_handle.hpp:31
Definition: build_info.hpp:12
std::pair< uint16_t, uint16_t > vid_pid_pair_t
Definition: usb_device_handle.hpp:35
#define UHD_API
Definition: config.h:87
std::shared_ptr< usb_device_handle > sptr
Definition: usb_device_handle.hpp:34