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  {
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  {
28  }
29 
30  virtual uint8_t get_interface_number() const override { return _interface_number; }
31 
32  private:
36  };
37  }
38 }
usb_endpoint_winusb(WINUSB_PIPE_INFORMATION info, uint8_t interface_number)
unsigned char uint8_t
Definition: stdint.h:78
enum librealsense::platform::_endpoint_direction endpoint_direction
def info(name, value, persistent=False)
Definition: test.py:301
virtual endpoint_direction get_direction() const override
virtual uint8_t get_interface_number() const override
enum librealsense::platform::_endpoint_type endpoint_type
virtual endpoint_type get_type() const override
virtual uint8_t get_address() const override


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:14