USRP Hardware Driver and USRP Manual Version: 3.15.0.0-MacPorts-Release
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
15namespace uhd { namespace transport {
16
18{
19public:
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 */
Definition: usb_control.hpp:18
boost::shared_ptr< usb_control > sptr
Definition: usb_control.hpp:20
virtual int submit(uint8_t request_type, uint8_t request, uint16_t value, uint16_t index, unsigned char *buff, uint16_t length, uint32_t timeout=0)=0
static sptr make(usb_device_handle::sptr handle, const int interface)
boost::shared_ptr< usb_device_handle > sptr
Definition: usb_device_handle.hpp:35
#define UHD_API
Definition: config.h:68
Definition: build_info.hpp:13
boost::noncopyable noncopyable
Definition: noncopyable.hpp:46