request-winusb.cpp
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2019 Intel Corporation. All Rights Reserved.
3 
4 #include "request-winusb.h"
5 #include "endpoint-winusb.h"
6 #include "device-winusb.h"
7 
8 namespace librealsense
9 {
10  namespace platform
11  {
13  {
14  _endpoint = endpoint;
15  _overlapped = std::make_shared<OVERLAPPED>();
16  _safe_handle = std::make_shared<safe_handle>(CreateEvent(nullptr, false, false, nullptr));
17  _overlapped->hEvent = _safe_handle->GetHandle();
18  _client_data = this;
19  }
20 
22  {
23 
24  }
25 
27  {
28  return _overlapped->InternalHigh;// _request->actual_length;
29  }
30 
32  {
33 
34  }
35 
37  {
38  return _buffer.size();
39  }
40 
42  {
43 
44  }
45 
47  {
48  return NULL;
49  }
50 
52  {
53  return _overlapped.get();
54  }
55  }
56 }
virtual uint8_t * get_native_buffer() const override
std::shared_ptr< OVERLAPPED > _overlapped
virtual void set_native_buffer(uint8_t *buffer) override
usb_request_winusb(rs_usb_device device, rs_usb_endpoint endpoint)
unsigned char uint8_t
Definition: stdint.h:78
virtual void set_native_buffer_length(int length) override
std::shared_ptr< usb_endpoint > rs_usb_endpoint
Definition: usb-endpoint.h:24
virtual void * get_native_request() const override
std::shared_ptr< safe_handle > _safe_handle
#define NULL
Definition: tinycthread.c:47
GLenum GLuint GLenum GLsizei length
std::shared_ptr< usb_device > rs_usb_device
Definition: usb-device.h:29
virtual int get_actual_length() const override


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