USRP Hardware Driver and USRP Manual  Version: 3.11.0.HEAD-0-gdca39145
UHD and USRP Manual
usb_control.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2010-2014 Ettus Research LLC
3 //
4 // SPDX-License-Identifier: GPL-3.0
5 //
6 
7 #ifndef INCLUDED_UHD_TRANSPORT_USB_CONTROL_HPP
8 #define INCLUDED_UHD_TRANSPORT_USB_CONTROL_HPP
9 
11 
12 namespace uhd { namespace transport {
13 
14 class UHD_API usb_control : boost::noncopyable {
15 public:
16  typedef boost::shared_ptr<usb_control> sptr;
17 
18  virtual ~usb_control(void);
19 
28  static sptr make(usb_device_handle::sptr handle, const int interface);
29 
48  virtual int submit(uint8_t request_type,
49  uint8_t request,
50  uint16_t value,
51  uint16_t index,
52  unsigned char *buff,
53  uint16_t length,
54  uint32_t timeout = 0) = 0;
55 };
56 
57 }} //namespace
58 
59 #endif /* INCLUDED_UHD_TRANSPORT_USB_CONTROL_HPP */
boost::shared_ptr< usb_device_handle > sptr
Definition: usb_device_handle.hpp:32
boost::shared_ptr< usb_control > sptr
Definition: usb_control.hpp:16
Definition: build_info.hpp:14
#define UHD_API
Definition: config.h:62
Definition: usb_control.hpp:14