USRP Hardware Driver and USRP Manual Version: 4.1.0.3
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#pragma once
9
12#include <memory>
13
14namespace uhd { namespace transport {
15
17{
18public:
19 typedef std::shared_ptr<usb_control> sptr;
20
21 virtual ~usb_control(void);
22
31 static sptr make(usb_device_handle::sptr handle, const int interface);
32
51 virtual int submit(uint8_t request_type,
52 uint8_t request,
53 uint16_t value,
54 uint16_t index,
55 unsigned char* buff,
56 uint16_t length,
57 uint32_t timeout = 0) = 0;
58};
59
60}} // namespace uhd::transport
Definition: usb_control.hpp:17
std::shared_ptr< usb_control > sptr
Definition: usb_control.hpp:19
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)
std::shared_ptr< usb_device_handle > sptr
Definition: usb_device_handle.hpp:34
#define UHD_API
Definition: config.h:70
Definition: build_info.hpp:12
boost::noncopyable noncopyable
Definition: noncopyable.hpp:45