Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
usb
usb-messenger.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-endpoint.h
"
7
#include "
usb-request.h
"
8
9
namespace
librealsense
10
{
11
namespace
platform
12
{
13
class
usb_messenger
14
{
15
public
:
16
virtual
~usb_messenger
() =
default
;
17
18
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) = 0;
19
virtual
usb_status
bulk_transfer
(
const
rs_usb_endpoint
& endpoint,
uint8_t
* buffer,
uint32_t
length,
uint32_t
& transferred,
uint32_t
timeout_ms) = 0;
20
virtual
usb_status
reset_endpoint
(
const
rs_usb_endpoint
& endpoint,
uint32_t
timeout_ms) = 0;
21
virtual
usb_status
submit_request
(
const
rs_usb_request
& request) = 0;
22
virtual
usb_status
cancel_request
(
const
rs_usb_request
& request) = 0;
23
virtual
rs_usb_request
create_request
(
rs_usb_endpoint
endpoint) = 0;
24
};
25
26
typedef
std::shared_ptr<usb_messenger>
rs_usb_messenger
;
27
}
28
}
librealsense::platform::rs_usb_request
std::shared_ptr< usb_request > rs_usb_request
Definition:
usb-request.h:41
value
GLfloat value
Definition:
glad/glad/glad.h:2100
usb-request.h
uint8_t
unsigned char uint8_t
Definition:
stdint.h:78
librealsense::platform::usb_messenger::~usb_messenger
virtual ~usb_messenger()=default
librealsense::platform::usb_status
enum librealsense::platform::_usb_status usb_status
librealsense::platform::usb_messenger::cancel_request
virtual usb_status cancel_request(const rs_usb_request &request)=0
index
GLuint index
Definition:
glad/glad/glad.h:2778
librealsense::platform::usb_messenger::submit_request
virtual usb_status submit_request(const rs_usb_request &request)=0
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::usb_messenger::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)=0
librealsense::platform::rs_usb_endpoint
std::shared_ptr< usb_endpoint > rs_usb_endpoint
Definition:
usb-endpoint.h:24
librealsense::platform::rs_usb_messenger
std::shared_ptr< usb_messenger > rs_usb_messenger
Definition:
usb-messenger.h:26
librealsense::platform::usb_messenger
Definition:
usb-messenger.h:13
usb-endpoint.h
librealsense::platform::usb_messenger::reset_endpoint
virtual usb_status reset_endpoint(const rs_usb_endpoint &endpoint, uint32_t timeout_ms)=0
librealsense::platform::usb_messenger::create_request
virtual rs_usb_request create_request(rs_usb_endpoint endpoint)=0
librealsense::platform::usb_messenger::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)=0
length
GLenum GLuint GLenum GLsizei length
Definition:
glad/glad/glad.h:136
librealsense2
Author(s): Sergey Dorodnicov
, Doron Hirshberg
, Mark Horn
, Reagan Lopez
, Itay Carpis
autogenerated on Mon May 3 2021 02:50:13