Public Member Functions | Protected Member Functions | Private Attributes | List of all members
librealsense::platform::usb_request_libusb Class Reference

#include <request-libusb.h>

Inheritance diagram for librealsense::platform::usb_request_libusb:
Inheritance graph
[legend]

Public Member Functions

virtual int get_actual_length () const override
 
virtual voidget_native_request () const override
 
std::shared_ptr< usb_requestget_shared () const
 
void set_active (bool state)
 
void set_shared (const std::shared_ptr< usb_request > &shared)
 
 usb_request_libusb (libusb_device_handle *dev_handle, rs_usb_endpoint endpoint)
 
virtual ~usb_request_libusb ()
 
- Public Member Functions inherited from librealsense::platform::usb_request_base
virtual const std::vector< uint8_t > & get_buffer () const override
 
virtual rs_usb_request_callback get_callback () const override
 
virtual voidget_client_data () const override
 
virtual rs_usb_endpoint get_endpoint () const override
 
virtual void set_buffer (const std::vector< uint8_t > &buffer) override
 
virtual void set_callback (rs_usb_request_callback callback) override
 
virtual void set_client_data (void *data) override
 

Protected Member Functions

virtual uint8_tget_native_buffer () const override
 
virtual int get_native_buffer_length () override
 
virtual void set_native_buffer (uint8_t *buffer) override
 
virtual void set_native_buffer_length (int length) override
 

Private Attributes

bool _active = false
 
std::weak_ptr< usb_request_shared
 
std::shared_ptr< libusb_transfer > _transfer
 

Additional Inherited Members

- Protected Attributes inherited from librealsense::platform::usb_request_base
std::vector< uint8_t_buffer
 
rs_usb_request_callback _callback
 
void_client_data
 
rs_usb_endpoint _endpoint
 
rs_usb_request request
 

Detailed Description

Definition at line 15 of file request-libusb.h.

Constructor & Destructor Documentation

librealsense::platform::usb_request_libusb::usb_request_libusb ( libusb_device_handle *  dev_handle,
rs_usb_endpoint  endpoint 
)

Definition at line 27 of file request-libusb.cpp.

librealsense::platform::usb_request_libusb::~usb_request_libusb ( )
virtual

Definition at line 47 of file request-libusb.cpp.

Member Function Documentation

int librealsense::platform::usb_request_libusb::get_actual_length ( ) const
overridevirtual

Implements librealsense::platform::usb_request.

Definition at line 72 of file request-libusb.cpp.

uint8_t * librealsense::platform::usb_request_libusb::get_native_buffer ( ) const
overrideprotectedvirtual

Implements librealsense::platform::usb_request.

Definition at line 82 of file request-libusb.cpp.

int librealsense::platform::usb_request_libusb::get_native_buffer_length ( )
overrideprotectedvirtual

Implements librealsense::platform::usb_request.

Definition at line 62 of file request-libusb.cpp.

void * librealsense::platform::usb_request_libusb::get_native_request ( ) const
overridevirtual

Implements librealsense::platform::usb_request.

Definition at line 87 of file request-libusb.cpp.

std::shared_ptr< usb_request > librealsense::platform::usb_request_libusb::get_shared ( ) const

Definition at line 92 of file request-libusb.cpp.

void librealsense::platform::usb_request_libusb::set_active ( bool  state)

Definition at line 57 of file request-libusb.cpp.

void librealsense::platform::usb_request_libusb::set_native_buffer ( uint8_t buffer)
overrideprotectedvirtual

Implements librealsense::platform::usb_request.

Definition at line 77 of file request-libusb.cpp.

void librealsense::platform::usb_request_libusb::set_native_buffer_length ( int  length)
overrideprotectedvirtual

Implements librealsense::platform::usb_request.

Definition at line 67 of file request-libusb.cpp.

void librealsense::platform::usb_request_libusb::set_shared ( const std::shared_ptr< usb_request > &  shared)

Definition at line 97 of file request-libusb.cpp.

Member Data Documentation

bool librealsense::platform::usb_request_libusb::_active = false
private

Definition at line 35 of file request-libusb.h.

std::weak_ptr<usb_request> librealsense::platform::usb_request_libusb::_shared
private

Definition at line 36 of file request-libusb.h.

std::shared_ptr<libusb_transfer> librealsense::platform::usb_request_libusb::_transfer
private

Definition at line 37 of file request-libusb.h.


The documentation for this class was generated from the following files:


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