#include <request-libusb.h>
Public Member Functions | |
virtual int | get_actual_length () const override |
virtual void * | get_native_request () const override |
std::shared_ptr< usb_request > | get_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 void * | get_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_t * | get_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 |
Definition at line 15 of file request-libusb.h.
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.
|
virtual |
Definition at line 47 of file request-libusb.cpp.
|
overridevirtual |
Implements librealsense::platform::usb_request.
Definition at line 72 of file request-libusb.cpp.
|
overrideprotectedvirtual |
Implements librealsense::platform::usb_request.
Definition at line 82 of file request-libusb.cpp.
|
overrideprotectedvirtual |
Implements librealsense::platform::usb_request.
Definition at line 62 of file request-libusb.cpp.
|
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.
|
overrideprotectedvirtual |
Implements librealsense::platform::usb_request.
Definition at line 77 of file request-libusb.cpp.
|
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.
|
private |
Definition at line 35 of file request-libusb.h.
|
private |
Definition at line 36 of file request-libusb.h.
|
private |
Definition at line 37 of file request-libusb.h.