Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
usbhost
interface-usbhost.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 "
endpoint-usbhost.h
"
7
#include "../usb/usb-interface.h"
8
#include "../usb/usb-device.h"
9
#include "
usbhost.h
"
10
#include <map>
11
12
namespace
librealsense
13
{
14
namespace
platform
15
{
16
class
usb_interface_usbhost
:
public
usb_interface
17
{
18
public
:
19
usb_interface_usbhost
(::
usb_interface_descriptor
desc, ::
usb_descriptor_iter
it
);
20
21
virtual
~usb_interface_usbhost
();
22
23
virtual
uint8_t
get_number
()
const override
{
return
_desc
.
bInterfaceNumber
; }
24
virtual
uint8_t
get_class
()
const override
{
return
_desc
.
bInterfaceClass
; }
25
virtual
uint8_t
get_subclass
()
const override
{
return
_desc
.
bInterfaceSubClass
; }
26
virtual
const
std::vector<rs_usb_endpoint>
get_endpoints
()
const override
{
return
_endpoints
; }
27
virtual
const
std::vector<rs_usb_interface>
get_associated_interfaces
()
const
{
return
_associated_interfaces
; }
28
29
virtual
const
rs_usb_endpoint
first_endpoint
(
const
endpoint_direction
direction
,
const
endpoint_type
type
=
RS2_USB_ENDPOINT_BULK
)
const override
;
30
31
void
add_associated_interface
(
const
rs_usb_interface
& interface);
32
private
:
33
::usb_interface_descriptor
_desc
;
34
std::vector<rs_usb_endpoint>
_endpoints
;
35
std::vector<rs_usb_interface>
_associated_interfaces
;
36
};
37
}
38
}
librealsense::platform::usb_interface
Definition:
usb-interface.h:17
librealsense::platform::usb_interface_descriptor::bInterfaceClass
uint8_t bInterfaceClass
Definition:
usb-types.h:197
librealsense::platform::rs_usb_interface
std::shared_ptr< usb_interface > rs_usb_interface
Definition:
usb-interface.h:31
librealsense::platform::usb_interface_usbhost::~usb_interface_usbhost
virtual ~usb_interface_usbhost()
librealsense::platform::usb_interface_usbhost
Definition:
interface-usbhost.h:16
uint8_t
unsigned char uint8_t
Definition:
stdint.h:78
direction
direction
Definition:
rs-align.cpp:25
librealsense::platform::usb_interface_usbhost::usb_interface_usbhost
usb_interface_usbhost(::usb_interface_descriptor desc,::usb_descriptor_iter it)
librealsense::platform::endpoint_direction
enum librealsense::platform::_endpoint_direction endpoint_direction
librealsense
Definition:
calibration-model.h:6
librealsense::platform::usb_interface_usbhost::first_endpoint
virtual const rs_usb_endpoint first_endpoint(const endpoint_direction direction, const endpoint_type type=RS2_USB_ENDPOINT_BULK) const override
librealsense::platform::usb_interface_descriptor::bInterfaceSubClass
uint8_t bInterfaceSubClass
Definition:
usb-types.h:198
librealsense::platform::usb_interface_usbhost::get_number
virtual uint8_t get_number() const override
Definition:
interface-usbhost.h:23
librealsense::platform::usb_interface_usbhost::_desc
::usb_interface_descriptor _desc
Definition:
interface-usbhost.h:33
librealsense::platform::usb_interface_descriptor::bInterfaceNumber
uint8_t bInterfaceNumber
Definition:
usb-types.h:194
usbhost.h
librealsense::platform::usb_interface_usbhost::get_associated_interfaces
virtual const std::vector< rs_usb_interface > get_associated_interfaces() const
Definition:
interface-usbhost.h:27
librealsense::platform::rs_usb_endpoint
std::shared_ptr< usb_endpoint > rs_usb_endpoint
Definition:
usb-endpoint.h:24
librealsense::platform::usb_interface_descriptor
Definition:
usb-types.h:191
librealsense::platform::usb_interface_usbhost::_endpoints
std::vector< rs_usb_endpoint > _endpoints
Definition:
interface-usbhost.h:34
librealsense::platform::usb_interface_usbhost::_associated_interfaces
std::vector< rs_usb_interface > _associated_interfaces
Definition:
interface-usbhost.h:35
endpoint-usbhost.h
librealsense::platform::usb_interface_usbhost::get_class
virtual uint8_t get_class() const override
Definition:
interface-usbhost.h:24
it
static auto it
Definition:
openvino-face-detection.cpp:372
type
GLenum type
Definition:
glad/glad/glad.h:136
librealsense::platform::RS2_USB_ENDPOINT_BULK
Definition:
usb-types.h:75
librealsense::platform::usb_interface_usbhost::get_subclass
virtual uint8_t get_subclass() const override
Definition:
interface-usbhost.h:25
usb_descriptor_iter
Definition:
usbhost.h:37
librealsense::platform::usb_interface_usbhost::get_endpoints
virtual const std::vector< rs_usb_endpoint > get_endpoints() const override
Definition:
interface-usbhost.h:26
librealsense::platform::endpoint_type
enum librealsense::platform::_endpoint_type endpoint_type
librealsense::platform::usb_interface_usbhost::add_associated_interface
void add_associated_interface(const rs_usb_interface &interface)
librealsense2
Author(s): Sergey Dorodnicov
, Doron Hirshberg
, Mark Horn
, Reagan Lopez
, Itay Carpis
autogenerated on Mon May 3 2021 02:47:17