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

#include <messenger-libusb.h>

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

Public Member Functions

virtual usb_status bulk_transfer (const rs_usb_endpoint &endpoint, uint8_t *buffer, uint32_t length, uint32_t &transferred, uint32_t timeout_ms) override
 
virtual usb_status cancel_request (const rs_usb_request &request) override
 
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) override
 
virtual rs_usb_request create_request (rs_usb_endpoint endpoint) override
 
virtual usb_status reset_endpoint (const rs_usb_endpoint &endpoint, uint32_t timeout_ms) override
 
virtual usb_status submit_request (const rs_usb_request &request) override
 
 usb_messenger_libusb (const std::shared_ptr< usb_device_libusb > &device, std::shared_ptr< handle_libusb > handle)
 
virtual ~usb_messenger_libusb () override
 
- Public Member Functions inherited from librealsense::platform::usb_messenger
virtual ~usb_messenger ()=default
 

Private Attributes

const std::shared_ptr< usb_device_libusb_device
 
std::shared_ptr< handle_libusb_handle
 
std::mutex _mutex
 

Detailed Description

Definition at line 17 of file messenger-libusb.h.

Constructor & Destructor Documentation

librealsense::platform::usb_messenger_libusb::usb_messenger_libusb ( const std::shared_ptr< usb_device_libusb > &  device,
std::shared_ptr< handle_libusb handle 
)

Definition at line 11 of file messenger-libusb.cpp.

librealsense::platform::usb_messenger_libusb::~usb_messenger_libusb ( )
overridevirtual

Definition at line 18 of file messenger-libusb.cpp.

Member Function Documentation

usb_status librealsense::platform::usb_messenger_libusb::bulk_transfer ( const rs_usb_endpoint endpoint,
uint8_t buffer,
uint32_t  length,
uint32_t transferred,
uint32_t  timeout_ms 
)
overridevirtual

Implements librealsense::platform::usb_messenger.

Definition at line 49 of file messenger-libusb.cpp.

usb_status librealsense::platform::usb_messenger_libusb::cancel_request ( const rs_usb_request request)
overridevirtual

Implements librealsense::platform::usb_messenger.

Definition at line 98 of file messenger-libusb.cpp.

usb_status librealsense::platform::usb_messenger_libusb::control_transfer ( int  request_type,
int  request,
int  value,
int  index,
uint8_t buffer,
uint32_t  length,
uint32_t transferred,
uint32_t  timeout_ms 
)
overridevirtual

Implements librealsense::platform::usb_messenger.

Definition at line 36 of file messenger-libusb.cpp.

rs_usb_request librealsense::platform::usb_messenger_libusb::create_request ( rs_usb_endpoint  endpoint)
overridevirtual

Implements librealsense::platform::usb_messenger.

Definition at line 73 of file messenger-libusb.cpp.

usb_status librealsense::platform::usb_messenger_libusb::reset_endpoint ( const rs_usb_endpoint endpoint,
uint32_t  timeout_ms 
)
overridevirtual

Implements librealsense::platform::usb_messenger.

Definition at line 23 of file messenger-libusb.cpp.

usb_status librealsense::platform::usb_messenger_libusb::submit_request ( const rs_usb_request request)
overridevirtual

Implements librealsense::platform::usb_messenger.

Definition at line 80 of file messenger-libusb.cpp.

Member Data Documentation

const std::shared_ptr<usb_device_libusb> librealsense::platform::usb_messenger_libusb::_device
private

Definition at line 31 of file messenger-libusb.h.

std::shared_ptr<handle_libusb> librealsense::platform::usb_messenger_libusb::_handle
private

Definition at line 33 of file messenger-libusb.h.

std::mutex librealsense::platform::usb_messenger_libusb::_mutex
private

Definition at line 32 of file messenger-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