USRP Hardware Driver and USRP Manual  Version: 4.7.0.0
UHD and USRP Manual
usb_control.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2010-2014 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 
12 #include <memory>
13 
14 namespace uhd { namespace transport {
15 
17 {
18 public:
19  typedef std::shared_ptr<usb_control> sptr;
20 
21  virtual ~usb_control(void);
22 
31  static sptr make(usb_device_handle::sptr handle, const int interface);
32 
51  virtual int submit(uint8_t request_type,
52  uint8_t request,
53  uint16_t value,
54  uint16_t index,
55  unsigned char* buff,
56  uint16_t length,
57  uint32_t timeout = 0) = 0;
58 };
59 
60 }} // namespace uhd::transport
boost::noncopyable noncopyable
Definition: noncopyable.hpp:45
Definition: build_info.hpp:12
std::shared_ptr< usb_control > sptr
Definition: usb_control.hpp:19
#define UHD_API
Definition: config.h:87
Definition: usb_control.hpp:16
std::shared_ptr< usb_device_handle > sptr
Definition: usb_device_handle.hpp:34