Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
libusb
request-libusb.h
Go to the documentation of this file.
1
// License: Apache 2.0. See LICENSE file in root directory.
2
// Copyright(c) 2019 Intel Corporation. All Rights Reserved.
3
4
#pragma once
5
6
#include "libusb.h"
7
#include "../usb/usb-request.h"
8
#include "../usb/usb-device.h"
9
10
11
namespace
librealsense
12
{
13
namespace
platform
14
{
15
class
usb_request_libusb
:
public
usb_request_base
16
{
17
public
:
18
usb_request_libusb
(libusb_device_handle *dev_handle,
rs_usb_endpoint
endpoint);
19
virtual
~usb_request_libusb
();
20
21
virtual
int
get_actual_length
()
const override
;
22
virtual
void
*
get_native_request
()
const override
;
23
24
std::shared_ptr<usb_request>
get_shared
()
const
;
25
void
set_shared
(
const
std::shared_ptr<usb_request>& shared);
26
void
set_active
(
bool
state
);
27
28
protected
:
29
virtual
void
set_native_buffer_length
(
int
length
)
override
;
30
virtual
int
get_native_buffer_length
()
override
;
31
virtual
void
set_native_buffer
(
uint8_t
*
buffer
)
override
;
32
virtual
uint8_t
*
get_native_buffer
()
const override
;
33
34
private
:
35
bool
_active
=
false
;
36
std::weak_ptr<usb_request>
_shared
;
37
std::shared_ptr<libusb_transfer>
_transfer
;
38
};
39
}
40
}
librealsense::platform::usb_request_libusb::get_shared
std::shared_ptr< usb_request > get_shared() const
Definition:
request-libusb.cpp:92
librealsense::platform::usb_request_libusb::usb_request_libusb
usb_request_libusb(libusb_device_handle *dev_handle, rs_usb_endpoint endpoint)
Definition:
request-libusb.cpp:27
uint8_t
unsigned char uint8_t
Definition:
stdint.h:78
librealsense::platform::buffer
Definition:
backend-v4l2.h:120
librealsense
Definition:
calibration-model.h:6
librealsense::platform::usb_request_libusb::_active
bool _active
Definition:
request-libusb.h:35
librealsense::platform::usb_request_libusb::set_shared
void set_shared(const std::shared_ptr< usb_request > &shared)
Definition:
request-libusb.cpp:97
librealsense::platform::usb_request_base
Definition:
usb-request.h:43
librealsense::platform::usb_request_libusb::_shared
std::weak_ptr< usb_request > _shared
Definition:
request-libusb.h:36
librealsense::platform::usb_request_libusb::get_native_buffer_length
virtual int get_native_buffer_length() override
Definition:
request-libusb.cpp:62
librealsense::platform::usb_request_libusb::set_active
void set_active(bool state)
Definition:
request-libusb.cpp:57
librealsense::platform::usb_request_libusb::_transfer
std::shared_ptr< libusb_transfer > _transfer
Definition:
request-libusb.h:37
librealsense::platform::usb_request_libusb::get_native_request
virtual void * get_native_request() const override
Definition:
request-libusb.cpp:87
librealsense::platform::rs_usb_endpoint
std::shared_ptr< usb_endpoint > rs_usb_endpoint
Definition:
usb-endpoint.h:24
librealsense::platform::usb_request_libusb::get_actual_length
virtual int get_actual_length() const override
Definition:
request-libusb.cpp:72
librealsense::platform::usb_request_libusb::set_native_buffer
virtual void set_native_buffer(uint8_t *buffer) override
Definition:
request-libusb.cpp:77
librealsense::platform::usb_request_libusb::get_native_buffer
virtual uint8_t * get_native_buffer() const override
Definition:
request-libusb.cpp:82
librealsense::platform::usb_request_libusb::set_native_buffer_length
virtual void set_native_buffer_length(int length) override
Definition:
request-libusb.cpp:67
state
Definition:
rs-measure.cpp:81
length
GLenum GLuint GLenum GLsizei length
Definition:
glad/glad/glad.h:136
librealsense::platform::usb_request_libusb::~usb_request_libusb
virtual ~usb_request_libusb()
Definition:
request-libusb.cpp:47
librealsense::platform::usb_request_libusb
Definition:
request-libusb.h:15
librealsense2
Author(s): Sergey Dorodnicov
, Doron Hirshberg
, Mark Horn
, Reagan Lopez
, Itay Carpis
autogenerated on Mon May 3 2021 02:47:40