Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
winusb
interface-winusb.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/usb-interface.h
"
7
#include "
endpoint-winusb.h
"
8
9
#include <windows.h>
10
#include <winusb.h>
11
#include <map>
12
13
namespace
librealsense
14
{
15
namespace
platform
16
{
17
class
usb_interface_winusb
:
public
usb_interface
18
{
19
public
:
20
usb_interface_winusb
(WINUSB_INTERFACE_HANDLE
handle
, USB_INTERFACE_DESCRIPTOR
info
,
const
std::wstring& device_path);
21
22
virtual
~usb_interface_winusb
() {};
23
24
virtual
uint8_t
get_number
()
const override
{
return
_info
.bInterfaceNumber; }
25
virtual
uint8_t
get_class
()
const override
{
return
_info
.bInterfaceClass; }
26
virtual
uint8_t
get_subclass
()
const override
{
return
_info
.bInterfaceSubClass; }
27
virtual
const
std::vector<std::shared_ptr<usb_endpoint>>
get_endpoints
()
const override
{
return
_endpoints
; }
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
const
std::wstring
get_device_path
() {
return
_device_path
; }
32
private
:
33
std::wstring
_device_path
;
34
USB_INTERFACE_DESCRIPTOR
_info
;
35
std::vector<std::shared_ptr<usb_endpoint>>
_endpoints
;
36
};
37
}
38
}
librealsense::platform::usb_interface_winusb::~usb_interface_winusb
virtual ~usb_interface_winusb()
Definition:
interface-winusb.h:22
librealsense::platform::usb_interface_winusb::_info
USB_INTERFACE_DESCRIPTOR _info
Definition:
interface-winusb.h:34
librealsense::platform::usb_interface
Definition:
usb-interface.h:17
handle
GLuint64 GLenum void * handle
Definition:
glext.h:7785
librealsense::platform::usb_interface_winusb::_device_path
std::wstring _device_path
Definition:
interface-winusb.h:33
endpoint-winusb.h
uint8_t
unsigned char uint8_t
Definition:
stdint.h:78
usb-interface.h
librealsense::platform::usb_interface_winusb::usb_interface_winusb
usb_interface_winusb(WINUSB_INTERFACE_HANDLE handle, USB_INTERFACE_DESCRIPTOR info, const std::wstring &device_path)
Definition:
interface-winusb.cpp:15
direction
direction
Definition:
rs-align.cpp:25
librealsense::platform::endpoint_direction
enum librealsense::platform::_endpoint_direction endpoint_direction
rspy.test.info
def info(name, value, persistent=False)
Definition:
test.py:301
librealsense::platform::usb_interface_winusb::get_subclass
virtual uint8_t get_subclass() const override
Definition:
interface-winusb.h:26
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_winusb::get_class
virtual uint8_t get_class() const override
Definition:
interface-winusb.h:25
librealsense::platform::usb_interface_winusb::get_number
virtual uint8_t get_number() const override
Definition:
interface-winusb.h:24
librealsense::platform::usb_interface_winusb::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-winusb.cpp:45
type
GLenum type
Definition:
glad/glad/glad.h:136
librealsense::platform::RS2_USB_ENDPOINT_BULK
Definition:
usb-types.h:75
librealsense::platform::usb_interface_winusb::get_device_path
const std::wstring get_device_path()
Definition:
interface-winusb.h:31
librealsense::platform::usb_interface_winusb::get_endpoints
virtual const std::vector< std::shared_ptr< usb_endpoint > > get_endpoints() const override
Definition:
interface-winusb.h:27
librealsense::platform::endpoint_type
enum librealsense::platform::_endpoint_type endpoint_type
librealsense::platform::usb_interface_winusb
Definition:
interface-winusb.h:17
librealsense::platform::usb_interface_winusb::_endpoints
std::vector< std::shared_ptr< usb_endpoint > > _endpoints
Definition:
interface-winusb.h:35
librealsense2
Author(s): Sergey Dorodnicov
, Doron Hirshberg
, Mark Horn
, Reagan Lopez
, Itay Carpis
autogenerated on Mon May 3 2021 02:47:17