usb-messenger.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-endpoint.h"
7 #include "usb-request.h"
8 
9 namespace librealsense
10 {
11  namespace platform
12  {
14  {
15  public:
16  virtual ~usb_messenger() = default;
17 
18  virtual usb_status control_transfer(int request_type, int request, int value, int index, uint8_t* buffer, uint32_t length, uint32_t& transferred, uint32_t timeout_ms) = 0;
19  virtual usb_status bulk_transfer(const rs_usb_endpoint& endpoint, uint8_t* buffer, uint32_t length, uint32_t& transferred, uint32_t timeout_ms) = 0;
20  virtual usb_status reset_endpoint(const rs_usb_endpoint& endpoint, uint32_t timeout_ms) = 0;
21  virtual usb_status submit_request(const rs_usb_request& request) = 0;
22  virtual usb_status cancel_request(const rs_usb_request& request) = 0;
23  virtual rs_usb_request create_request(rs_usb_endpoint endpoint) = 0;
24  };
25 
26  typedef std::shared_ptr<usb_messenger> rs_usb_messenger;
27  }
28 }
std::shared_ptr< usb_request > rs_usb_request
Definition: usb-request.h:41
GLfloat value
unsigned char uint8_t
Definition: stdint.h:78
enum librealsense::platform::_usb_status usb_status
virtual usb_status cancel_request(const rs_usb_request &request)=0
GLuint index
virtual usb_status submit_request(const rs_usb_request &request)=0
unsigned int uint32_t
Definition: stdint.h:80
virtual usb_status control_transfer(int request_type, int request, int value, int index, uint8_t *buffer, uint32_t length, uint32_t &transferred, uint32_t timeout_ms)=0
std::shared_ptr< usb_endpoint > rs_usb_endpoint
Definition: usb-endpoint.h:24
std::shared_ptr< usb_messenger > rs_usb_messenger
Definition: usb-messenger.h:26
virtual usb_status reset_endpoint(const rs_usb_endpoint &endpoint, uint32_t timeout_ms)=0
virtual rs_usb_request create_request(rs_usb_endpoint endpoint)=0
virtual usb_status bulk_transfer(const rs_usb_endpoint &endpoint, uint8_t *buffer, uint32_t length, uint32_t &transferred, uint32_t timeout_ms)=0
GLenum GLuint GLenum GLsizei length


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