USRP Hardware Driver and USRP Manual  Version: 3.14.1.HEAD-0-g0347a6d8
UHD and USRP Manual
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
12 
13 namespace uhd { namespace transport {
14 
15 class UHD_API usb_control : boost::noncopyable
16 {
17 public:
18  typedef boost::shared_ptr<usb_control> sptr;
19 
20  virtual ~usb_control(void);
21 
30  static sptr make(usb_device_handle::sptr handle, const int interface);
31 
50  virtual int submit(uint8_t request_type,
51  uint8_t request,
52  uint16_t value,
53  uint16_t index,
54  unsigned char* buff,
55  uint16_t length,
56  uint32_t timeout = 0) = 0;
57 };
58 
59 }} // namespace uhd::transport
60 
61 #endif /* INCLUDED_UHD_TRANSPORT_USB_CONTROL_HPP */
boost::shared_ptr< usb_device_handle > sptr
Definition: usb_device_handle.hpp:34
boost::shared_ptr< usb_control > sptr
Definition: usb_control.hpp:18
Definition: build_info.hpp:13
#define UHD_API
Definition: config.h:68
Definition: usb_control.hpp:15