Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
usbhost
request-usbhost.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 "
usbhost.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_usbhost
:
public
usb_request_base
16
{
17
public
:
18
usb_request_usbhost
(
rs_usb_device
device
,
rs_usb_endpoint
endpoint);
19
virtual
~usb_request_usbhost
();
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<::usb_request>
_native_request
;
38
};
39
}
40
}
librealsense::platform::usb_request_usbhost::set_shared
void set_shared(const std::shared_ptr< usb_request > &shared)
Definition:
request-usbhost.cpp:79
librealsense::platform::usb_request_usbhost::get_shared
std::shared_ptr< usb_request > get_shared() const
Definition:
request-usbhost.cpp:74
librealsense::platform::usb_request_usbhost::set_native_buffer_length
virtual void set_native_buffer_length(int length) override
Definition:
request-usbhost.cpp:49
librealsense::platform::usb_request_usbhost::_active
bool _active
Definition:
request-usbhost.h:35
librealsense::platform::usb_request_usbhost::_native_request
std::shared_ptr<::usb_request > _native_request
Definition:
request-usbhost.h:37
librealsense::platform::usb_request_usbhost::_shared
std::weak_ptr< usb_request > _shared
Definition:
request-usbhost.h:36
librealsense::platform::usb_request_usbhost
Definition:
request-usbhost.h:15
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_base
Definition:
usb-request.h:43
librealsense::platform::usb_request_usbhost::usb_request_usbhost
usb_request_usbhost(rs_usb_device device, rs_usb_endpoint endpoint)
Definition:
request-usbhost.cpp:12
librealsense::platform::usb_request_usbhost::~usb_request_usbhost
virtual ~usb_request_usbhost()
Definition:
request-usbhost.cpp:29
librealsense::platform::usb_request_usbhost::set_native_buffer
virtual void set_native_buffer(uint8_t *buffer) override
Definition:
request-usbhost.cpp:59
usbhost.h
librealsense::platform::usb_request_usbhost::get_actual_length
virtual int get_actual_length() const override
Definition:
request-usbhost.cpp:54
librealsense::platform::rs_usb_endpoint
std::shared_ptr< usb_endpoint > rs_usb_endpoint
Definition:
usb-endpoint.h:24
librealsense::platform::usb_request_usbhost::get_native_request
virtual void * get_native_request() const override
Definition:
request-usbhost.cpp:69
state
Definition:
rs-measure.cpp:81
librealsense::platform::usb_request_usbhost::get_native_buffer_length
virtual int get_native_buffer_length() override
Definition:
request-usbhost.cpp:44
length
GLenum GLuint GLenum GLsizei length
Definition:
glad/glad/glad.h:136
librealsense::platform::usb_request_usbhost::get_native_buffer
virtual uint8_t * get_native_buffer() const override
Definition:
request-usbhost.cpp:64
librealsense::device
Definition:
device.h:43
librealsense::platform::usb_request_usbhost::set_active
void set_active(bool state)
Definition:
request-usbhost.cpp:39
librealsense::platform::rs_usb_device
std::shared_ptr< usb_device > rs_usb_device
Definition:
usb-device.h:29
librealsense2
Author(s): Sergey Dorodnicov
, Doron Hirshberg
, Mark Horn
, Reagan Lopez
, Itay Carpis
autogenerated on Mon May 3 2021 02:47:40