Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
usb
usb-interface.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-types.h
"
7
#include "
usb-endpoint.h
"
8
#include "
usb-messenger.h
"
9
10
#include <memory>
11
#include <vector>
12
13
namespace
librealsense
14
{
15
namespace
platform
16
{
17
class
usb_interface
18
{
19
public
:
20
usb_interface
() =
default
;
21
virtual
~usb_interface
() =
default
;
22
23
virtual
uint8_t
get_number
()
const
= 0;
24
virtual
uint8_t
get_class
()
const
= 0;
25
virtual
uint8_t
get_subclass
()
const
= 0;
26
virtual
const
std::vector<rs_usb_endpoint>
get_endpoints
()
const
= 0;
27
28
virtual
const
rs_usb_endpoint
first_endpoint
(
const
endpoint_direction
direction
,
const
endpoint_type
type
=
RS2_USB_ENDPOINT_BULK
)
const
= 0;
29
};
30
31
typedef
std::shared_ptr<usb_interface>
rs_usb_interface
;
32
}
33
}
librealsense::platform::usb_interface
Definition:
usb-interface.h:17
usb-messenger.h
librealsense::platform::rs_usb_interface
std::shared_ptr< usb_interface > rs_usb_interface
Definition:
usb-interface.h:31
usb-types.h
uint8_t
unsigned char uint8_t
Definition:
stdint.h:78
direction
direction
Definition:
rs-align.cpp:25
librealsense::platform::usb_interface::get_endpoints
virtual const std::vector< rs_usb_endpoint > get_endpoints() const =0
librealsense::platform::endpoint_direction
enum librealsense::platform::_endpoint_direction endpoint_direction
librealsense::platform::usb_interface::get_subclass
virtual uint8_t get_subclass() const =0
librealsense
Definition:
calibration-model.h:6
librealsense::platform::usb_interface::get_number
virtual uint8_t get_number() const =0
librealsense::platform::rs_usb_endpoint
std::shared_ptr< usb_endpoint > rs_usb_endpoint
Definition:
usb-endpoint.h:24
usb-endpoint.h
librealsense::platform::usb_interface::~usb_interface
virtual ~usb_interface()=default
type
GLenum type
Definition:
glad/glad/glad.h:136
librealsense::platform::usb_interface::first_endpoint
virtual const rs_usb_endpoint first_endpoint(const endpoint_direction direction, const endpoint_type type=RS2_USB_ENDPOINT_BULK) const =0
librealsense::platform::RS2_USB_ENDPOINT_BULK
Definition:
usb-types.h:75
librealsense::platform::usb_interface::usb_interface
usb_interface()=default
librealsense::platform::endpoint_type
enum librealsense::platform::_endpoint_type endpoint_type
librealsense::platform::usb_interface::get_class
virtual uint8_t get_class() const =0
librealsense2
Author(s): Sergey Dorodnicov
, Doron Hirshberg
, Mark Horn
, Reagan Lopez
, Itay Carpis
autogenerated on Mon May 3 2021 02:50:13