USRP Hardware Driver and USRP Manual  Version: 3.13.0.HEAD-0-gf114cfa0
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 
12 
13 namespace uhd { namespace transport {
14 
15 class UHD_API usb_control : boost::noncopyable {
16 public:
17  typedef boost::shared_ptr<usb_control> sptr;
18 
19  virtual ~usb_control(void);
20 
29  static sptr make(usb_device_handle::sptr handle, const int interface);
30 
49  virtual int submit(uint8_t request_type,
50  uint8_t request,
51  uint16_t value,
52  uint16_t index,
53  unsigned char *buff,
54  uint16_t length,
55  uint32_t timeout = 0) = 0;
56 };
57 
58 }} //namespace
59 
60 #endif /* INCLUDED_UHD_TRANSPORT_USB_CONTROL_HPP */
boost::shared_ptr< usb_device_handle > sptr
Definition: usb_device_handle.hpp:33
boost::shared_ptr< usb_control > sptr
Definition: usb_control.hpp:17
Definition: build_info.hpp:14
#define UHD_API
Definition: config.h:63
Definition: usb_control.hpp:15