Loading...
Searching...
No Matches
usb_device_handle.hpp
Go to the documentation of this file.
//
// Copyright 2010-2013 Ettus Research LLC
// Copyright 2018 Ettus Research, a National Instruments Company
//
// SPDX-License-Identifier: GPL-3.0-or-later
//
#pragma once
#include <uhd/config.hpp>
#include <uhd/utils/noncopyable.hpp>
#include <stdint.h>
#include <memory>
#include <string>
#include <vector>
namespace uhd { namespace transport {
class UHD_API usb_device_handle : uhd::noncopyable
{
public:
typedef std::shared_ptr<usb_device_handle> sptr;
typedef std::pair<uint16_t, uint16_t> vid_pid_pair_t;
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 uint16_t get_vendor_id() const = 0;
virtual uint16_t get_product_id() const = 0;
virtual bool firmware_loaded() = 0;
static std::vector<usb_device_handle::sptr> get_device_list(
uint16_t vid, 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
}} // namespace uhd::transport
uhd::transport::usb_device_handle
Definition usb_device_handle.hpp:32
uhd::transport::usb_device_handle::get_manufacturer
virtual std::string get_manufacturer() const =0
uhd::transport::usb_device_handle::sptr
std::shared_ptr< usb_device_handle > sptr
Definition usb_device_handle.hpp:34
uhd::transport::usb_device_handle::~usb_device_handle
virtual ~usb_device_handle(void)
uhd::transport::usb_device_handle::get_serial
virtual std::string get_serial() const =0
uhd::transport::usb_device_handle::get_product
virtual std::string get_product() const =0
uhd::transport::usb_device_handle::firmware_loaded
virtual bool firmware_loaded()=0
uhd::transport::usb_device_handle::get_device_list
static std::vector< usb_device_handle::sptr > get_device_list(const std::vector< usb_device_handle::vid_pid_pair_t > &vid_pid_pair_list)
uhd::transport::usb_device_handle::get_device_list
static std::vector< usb_device_handle::sptr > get_device_list(uint16_t vid, uint16_t pid)
uhd::transport::usb_device_handle::vid_pid_pair_t
std::pair< uint16_t, uint16_t > vid_pid_pair_t
Definition usb_device_handle.hpp:35
uhd::transport::usb_device_handle::get_vendor_id
virtual uint16_t get_vendor_id() const =0
uhd::transport::usb_device_handle::get_product_id
virtual uint16_t get_product_id() const =0
UHD_API
#define UHD_API
Definition config.h:87
config.hpp
uhd::transport
Definition adapter_id.hpp:11
uhd
Definition build_info.hpp:12
uhd::noncopyable
boost::noncopyable noncopyable
Definition noncopyable.hpp:45
noncopyable.hpp