Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
winusb
endpoint-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-endpoint.h
"
7
8
#include <windows.h>
9
#include <winusb.h>
10
11
namespace
librealsense
12
{
13
namespace
platform
14
{
15
class
usb_endpoint_winusb
:
public
usb_endpoint
16
{
17
public
:
18
usb_endpoint_winusb
(WINUSB_PIPE_INFORMATION
info
,
uint8_t
interface_number) :
19
_address
(info.PipeId),
_type
((
endpoint_type
)info.PipeType),
_interface_number
(interface_number)
20
{ }
21
22
virtual
uint8_t
get_address
()
const override
{
return
_address
; }
23
virtual
endpoint_type
get_type
()
const override
{
return
_type
; }
24
virtual
endpoint_direction
get_direction
()
const override
25
{
26
return
_address
>=
RS2_USB_ENDPOINT_DIRECTION_READ
?
27
RS2_USB_ENDPOINT_DIRECTION_READ
:
RS2_USB_ENDPOINT_DIRECTION_WRITE
;
28
}
29
30
virtual
uint8_t
get_interface_number
()
const override
{
return
_interface_number
; }
31
32
private
:
33
uint8_t
_address
;
34
endpoint_type
_type
;
35
uint8_t
_interface_number
;
36
};
37
}
38
}
librealsense::platform::usb_endpoint_winusb
Definition:
endpoint-winusb.h:15
librealsense::platform::usb_endpoint_winusb::usb_endpoint_winusb
usb_endpoint_winusb(WINUSB_PIPE_INFORMATION info, uint8_t interface_number)
Definition:
endpoint-winusb.h:18
uint8_t
unsigned char uint8_t
Definition:
stdint.h:78
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
Definition:
calibration-model.h:6
librealsense::platform::usb_endpoint_winusb::get_direction
virtual endpoint_direction get_direction() const override
Definition:
endpoint-winusb.h:24
librealsense::platform::RS2_USB_ENDPOINT_DIRECTION_READ
Definition:
usb-types.h:68
usb-endpoint.h
librealsense::platform::RS2_USB_ENDPOINT_DIRECTION_WRITE
Definition:
usb-types.h:67
librealsense::platform::usb_endpoint_winusb::_interface_number
uint8_t _interface_number
Definition:
endpoint-winusb.h:35
librealsense::platform::usb_endpoint_winusb::get_interface_number
virtual uint8_t get_interface_number() const override
Definition:
endpoint-winusb.h:30
librealsense::platform::endpoint_type
enum librealsense::platform::_endpoint_type endpoint_type
librealsense::platform::usb_endpoint_winusb::get_type
virtual endpoint_type get_type() const override
Definition:
endpoint-winusb.h:23
librealsense::platform::usb_endpoint_winusb::_address
uint8_t _address
Definition:
endpoint-winusb.h:33
librealsense::platform::usb_endpoint
Definition:
usb-endpoint.h:15
librealsense::platform::usb_endpoint_winusb::_type
endpoint_type _type
Definition:
endpoint-winusb.h:34
librealsense::platform::usb_endpoint_winusb::get_address
virtual uint8_t get_address() const override
Definition:
endpoint-winusb.h:22
librealsense2
Author(s): Sergey Dorodnicov
, Doron Hirshberg
, Mark Horn
, Reagan Lopez
, Itay Carpis
autogenerated on Mon May 3 2021 02:47:14