Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
libusb
device-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 "
messenger-libusb.h
"
7
8
namespace
librealsense
9
{
10
namespace
platform
11
{
12
class
usb_device_libusb
:
public
usb_device
,
public
std::enable_shared_from_this<usb_device_libusb>
13
{
14
public
:
15
usb_device_libusb
(libusb_device*
device
,
const
libusb_device_descriptor& desc,
const
usb_device_info
&
info
, std::shared_ptr<usb_context>
context
);
16
virtual
~usb_device_libusb
();
17
18
virtual
const
usb_device_info
get_info
()
const override
{
return
_info
; }
19
virtual
const
std::vector<rs_usb_interface>
get_interfaces
()
const override
{
return
_interfaces
; }
20
virtual
const
rs_usb_interface
get_interface
(
uint8_t
interface_number)
const override
;
21
virtual
const
rs_usb_messenger
open
(
uint8_t
interface_number)
override
;
22
virtual
const
std::vector<usb_descriptor>
get_descriptors
()
const override
{
return
_descriptors
; }
23
libusb_device*
get_device
() {
return
_device
; }
24
25
private
:
26
libusb_device*
_device
;
27
libusb_device_descriptor
_usb_device_descriptor
;
28
const
usb_device_info
_info
;
29
std::vector<std::shared_ptr<usb_interface>>
_interfaces
;
30
std::vector<usb_descriptor>
_descriptors
;
31
std::shared_ptr<usb_context>
_context
;
32
33
std::shared_ptr<handle_libusb>
get_handle
(
uint8_t
interface_number);
34
};
35
}
36
}
librealsense::platform::usb_device_info
Definition:
usb-types.h:136
librealsense::platform::usb_device_libusb::_interfaces
std::vector< std::shared_ptr< usb_interface > > _interfaces
Definition:
device-libusb.h:29
librealsense::platform::rs_usb_interface
std::shared_ptr< usb_interface > rs_usb_interface
Definition:
usb-interface.h:31
librealsense::context
Definition:
context.h:106
librealsense::platform::usb_device_libusb::get_handle
std::shared_ptr< handle_libusb > get_handle(uint8_t interface_number)
Definition:
device-libusb.cpp:85
librealsense::platform::usb_device_libusb::usb_device_libusb
usb_device_libusb(libusb_device *device, const libusb_device_descriptor &desc, const usb_device_info &info, std::shared_ptr< usb_context > context)
Definition:
device-libusb.cpp:12
librealsense::platform::usb_device_libusb::open
virtual const rs_usb_messenger open(uint8_t interface_number) override
Definition:
device-libusb.cpp:101
uint8_t
unsigned char uint8_t
Definition:
stdint.h:78
librealsense::platform::usb_device_libusb::_usb_device_descriptor
libusb_device_descriptor _usb_device_descriptor
Definition:
device-libusb.h:27
rspy.test.info
def info(name, value, persistent=False)
Definition:
test.py:301
librealsense
Definition:
calibration-model.h:6
librealsense::platform::usb_device_libusb::get_interface
virtual const rs_usb_interface get_interface(uint8_t interface_number) const override
Definition:
device-libusb.cpp:76
librealsense::platform::usb_device_libusb::~usb_device_libusb
virtual ~usb_device_libusb()
Definition:
device-libusb.cpp:71
librealsense::platform::rs_usb_messenger
std::shared_ptr< usb_messenger > rs_usb_messenger
Definition:
usb-messenger.h:26
librealsense::platform::usb_device_libusb
Definition:
device-libusb.h:12
messenger-libusb.h
librealsense::platform::usb_device_libusb::get_info
virtual const usb_device_info get_info() const override
Definition:
device-libusb.h:18
librealsense::platform::usb_device_libusb::_info
const usb_device_info _info
Definition:
device-libusb.h:28
librealsense::platform::usb_device
Definition:
usb-device.h:17
librealsense::platform::usb_device_libusb::_device
libusb_device * _device
Definition:
device-libusb.h:26
librealsense::platform::usb_device_libusb::get_interfaces
virtual const std::vector< rs_usb_interface > get_interfaces() const override
Definition:
device-libusb.h:19
librealsense::platform::usb_device_libusb::get_descriptors
virtual const std::vector< usb_descriptor > get_descriptors() const override
Definition:
device-libusb.h:22
librealsense::platform::usb_device_libusb::_context
std::shared_ptr< usb_context > _context
Definition:
device-libusb.h:31
librealsense::platform::usb_device_libusb::_descriptors
std::vector< usb_descriptor > _descriptors
Definition:
device-libusb.h:30
librealsense::device
Definition:
device.h:43
librealsense::platform::usb_device_libusb::get_device
libusb_device * get_device()
Definition:
device-libusb.h:23
librealsense2
Author(s): Sergey Dorodnicov
, Doron Hirshberg
, Mark Horn
, Reagan Lopez
, Itay Carpis
autogenerated on Mon May 3 2021 02:47:12