Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
libusb
messenger-libusb.h
Go to the documentation of this file.
1
// License: Apache 2.0. See LICENSE file in root directory.
2
// Copyright(c) 2015 Intel Corporation. All Rights Reserved.
3
4
#pragma once
5
6
#include "
usb/usb-messenger.h
"
7
#include "
interface-libusb.h
"
8
#include "
request-libusb.h
"
9
#include "
handle-libusb.h
"
10
11
namespace
librealsense
12
{
13
namespace
platform
14
{
15
class
usb_device_libusb;
16
17
class
usb_messenger_libusb
:
public
usb_messenger
18
{
19
public
:
20
usb_messenger_libusb
(
const
std::shared_ptr<usb_device_libusb>&
device
, std::shared_ptr<handle_libusb>
handle
);
21
virtual
~usb_messenger_libusb
()
override
;
22
23
virtual
usb_status
control_transfer
(
int
request_type,
int
request,
int
value
,
int
index
,
uint8_t
*
buffer
,
uint32_t
length
,
uint32_t
& transferred,
uint32_t
timeout_ms)
override
;
24
virtual
usb_status
bulk_transfer
(
const
rs_usb_endpoint
& endpoint,
uint8_t
* buffer,
uint32_t
length,
uint32_t
& transferred,
uint32_t
timeout_ms)
override
;
25
virtual
usb_status
reset_endpoint
(
const
rs_usb_endpoint
& endpoint,
uint32_t
timeout_ms)
override
;
26
virtual
usb_status
submit_request
(
const
rs_usb_request
& request)
override
;
27
virtual
usb_status
cancel_request
(
const
rs_usb_request
& request)
override
;
28
virtual
rs_usb_request
create_request
(
rs_usb_endpoint
endpoint)
override
;
29
30
private
:
31
const
std::shared_ptr<usb_device_libusb>
_device
;
32
std::mutex
_mutex
;
33
std::shared_ptr<handle_libusb>
_handle
;
34
};
35
}
36
}
handle-libusb.h
librealsense::platform::usb_messenger_libusb::usb_messenger_libusb
usb_messenger_libusb(const std::shared_ptr< usb_device_libusb > &device, std::shared_ptr< handle_libusb > handle)
Definition:
messenger-libusb.cpp:11
librealsense::platform::usb_messenger_libusb::_device
const std::shared_ptr< usb_device_libusb > _device
Definition:
messenger-libusb.h:31
usb-messenger.h
librealsense::platform::usb_messenger_libusb
Definition:
messenger-libusb.h:17
librealsense::platform::rs_usb_request
std::shared_ptr< usb_request > rs_usb_request
Definition:
usb-request.h:41
interface-libusb.h
handle
GLuint64 GLenum void * handle
Definition:
glext.h:7785
value
GLfloat value
Definition:
glad/glad/glad.h:2100
librealsense::platform::usb_messenger_libusb::_handle
std::shared_ptr< handle_libusb > _handle
Definition:
messenger-libusb.h:33
uint8_t
unsigned char uint8_t
Definition:
stdint.h:78
librealsense::platform::usb_status
enum librealsense::platform::_usb_status usb_status
index
GLuint index
Definition:
glad/glad/glad.h:2778
librealsense::platform::buffer
Definition:
backend-v4l2.h:120
librealsense
Definition:
calibration-model.h:6
uint32_t
unsigned int uint32_t
Definition:
stdint.h:80
librealsense::platform::rs_usb_endpoint
std::shared_ptr< usb_endpoint > rs_usb_endpoint
Definition:
usb-endpoint.h:24
librealsense::platform::usb_messenger_libusb::cancel_request
virtual usb_status cancel_request(const rs_usb_request &request) override
Definition:
messenger-libusb.cpp:98
librealsense::platform::usb_messenger
Definition:
usb-messenger.h:13
librealsense::platform::usb_messenger_libusb::control_transfer
virtual usb_status control_transfer(int request_type, int request, int value, int index, uint8_t *buffer, uint32_t length, uint32_t &transferred, uint32_t timeout_ms) override
Definition:
messenger-libusb.cpp:36
librealsense::platform::usb_messenger_libusb::_mutex
std::mutex _mutex
Definition:
messenger-libusb.h:32
length
GLenum GLuint GLenum GLsizei length
Definition:
glad/glad/glad.h:136
librealsense::platform::usb_messenger_libusb::reset_endpoint
virtual usb_status reset_endpoint(const rs_usb_endpoint &endpoint, uint32_t timeout_ms) override
Definition:
messenger-libusb.cpp:23
librealsense::platform::usb_messenger_libusb::submit_request
virtual usb_status submit_request(const rs_usb_request &request) override
Definition:
messenger-libusb.cpp:80
librealsense::platform::usb_messenger_libusb::bulk_transfer
virtual usb_status bulk_transfer(const rs_usb_endpoint &endpoint, uint8_t *buffer, uint32_t length, uint32_t &transferred, uint32_t timeout_ms) override
Definition:
messenger-libusb.cpp:49
request-libusb.h
librealsense::device
Definition:
device.h:43
librealsense::platform::usb_messenger_libusb::create_request
virtual rs_usb_request create_request(rs_usb_endpoint endpoint) override
Definition:
messenger-libusb.cpp:73
librealsense::platform::usb_messenger_libusb::~usb_messenger_libusb
virtual ~usb_messenger_libusb() override
Definition:
messenger-libusb.cpp:18
librealsense2
Author(s): Sergey Dorodnicov
, Doron Hirshberg
, Mark Horn
, Reagan Lopez
, Itay Carpis
autogenerated on Mon May 3 2021 02:47:21