USRP Hardware Driver and USRP Manual  Version: 4.4.0.HEAD-0-g5fac246b
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
uhd::transport::usb_control
Definition: usb_control.hpp:16
UHD_API
#define UHD_API
Definition: config.h:87
noncopyable.hpp
uhd
Definition: build_info.hpp:12
uhd::transport::usb_device_handle::sptr
std::shared_ptr< usb_device_handle > sptr
Definition: usb_device_handle.hpp:34
usb_device_handle.hpp
uhd::transport::usb_control::sptr
std::shared_ptr< usb_control > sptr
Definition: usb_control.hpp:19
uhd::noncopyable
boost::noncopyable noncopyable
Definition: noncopyable.hpp:45