USRP Hardware Driver and USRP Manual: usb_control.hpp Source File

| USRP Hardware Driver and USRP Manual Version: 4.9.0.makepkg-0-g9ec1f582 UHD and USRP Manual |

Loading...
Searching...
No Matches
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
10#include <uhd/transport/usb_device_handle.hpp>
11#include <uhd/utils/noncopyable.hpp>
12#include <memory>
13
14namespace uhd { namespace transport {
15
16 class UHD_API usb_control : uhd::noncopyable
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
uhd::transport::usb_control
Definition usb_control.hpp:17
uhd::transport::usb_control::sptr
std::shared_ptr< usb_control > sptr
Definition usb_control.hpp:19
uhd::transport::usb_control::submit
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
uhd::transport::usb_control::~usb_control
virtual ~usb_control(void)
uhd::transport::usb_control::make
static sptr make(usb_device_handle::sptr handle, const int interface)
uhd::transport::usb_device_handle::sptr
std::shared_ptr< usb_device_handle > sptr
Definition usb_device_handle.hpp:34
UHD_API
#define UHD_API
Definition config.h:87
uhd::transport
Definition adapter_id.hpp:11
uhd
Definition build_info.hpp:12
uhd::noncopyable
boost::noncopyable noncopyable
Definition noncopyable.hpp:45
noncopyable.hpp
usb_device_handle.hpp