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