Loading...
Searching...
No Matches
usb_control.hpp
Go to the documentation of this file.
//
// Copyright 2010-2014 Ettus Research LLC
// Copyright 2018 Ettus Research, a National Instruments Company
//
// SPDX-License-Identifier: GPL-3.0-or-later
//
#pragma once
#include <uhd/transport/usb_device_handle.hpp>
#include <uhd/utils/noncopyable.hpp>
#include <memory>
namespace uhd { namespace transport {
class UHD_API usb_control : uhd::noncopyable
{
public:
typedef std::shared_ptr<usb_control> sptr;
virtual ~usb_control(void);
static sptr make(usb_device_handle::sptr handle, const int interface);
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;
};
}} // 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