USRP Hardware Driver and USRP Manual  Version: 3.15.0.HEAD-0-gaea0e2de
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 #ifndef INCLUDED_UHD_TRANSPORT_USB_CONTROL_HPP
9 #define INCLUDED_UHD_TRANSPORT_USB_CONTROL_HPP
10 
13 #include <boost/shared_ptr.hpp>
14 
15 namespace uhd { namespace transport {
16 
18 {
19 public:
20  typedef boost::shared_ptr<usb_control> sptr;
21 
22  virtual ~usb_control(void);
23 
32  static sptr make(usb_device_handle::sptr handle, const int interface);
33 
52  virtual int submit(uint8_t request_type,
53  uint8_t request,
54  uint16_t value,
55  uint16_t index,
56  unsigned char* buff,
57  uint16_t length,
58  uint32_t timeout = 0) = 0;
59 };
60 
61 }} // namespace uhd::transport
62 
63 #endif /* INCLUDED_UHD_TRANSPORT_USB_CONTROL_HPP */
boost::noncopyable noncopyable
Definition: noncopyable.hpp:46
boost::shared_ptr< usb_device_handle > sptr
Definition: usb_device_handle.hpp:35
boost::shared_ptr< usb_control > sptr
Definition: usb_control.hpp:20
Definition: build_info.hpp:13
#define UHD_API
Definition: config.h:68
Definition: usb_control.hpp:17