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

#include <messenger-usbhost.h>

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

Public Member Functions

virtual usb_status bulk_transfer (const std::shared_ptr< 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_usbhost (const std::shared_ptr< usb_device_usbhost > &device, std::shared_ptr< handle_usbhost > handle)
 
virtual ~usb_messenger_usbhost ()
 
- Public Member Functions inherited from librealsense::platform::usb_messenger
virtual usb_status bulk_transfer (const rs_usb_endpoint &endpoint, uint8_t *buffer, uint32_t length, uint32_t &transferred, uint32_t timeout_ms)=0
 
virtual ~usb_messenger ()=default
 

Private Attributes

std::shared_ptr< usb_device_usbhost_device
 
std::shared_ptr< handle_usbhost_handle
 
std::mutex _mutex
 

Detailed Description

Definition at line 26 of file messenger-usbhost.h.

Constructor & Destructor Documentation

librealsense::platform::usb_messenger_usbhost::usb_messenger_usbhost ( const std::shared_ptr< usb_device_usbhost > &  device,
std::shared_ptr< handle_usbhost handle 
)

Definition at line 26 of file messenger-usbhost.cpp.

librealsense::platform::usb_messenger_usbhost::~usb_messenger_usbhost ( )
virtual

Definition at line 33 of file messenger-usbhost.cpp.

Member Function Documentation

usb_status librealsense::platform::usb_messenger_usbhost::bulk_transfer ( const std::shared_ptr< usb_endpoint > &  endpoint,
uint8_t buffer,
uint32_t  length,
uint32_t transferred,
uint32_t  timeout_ms 
)
overridevirtual

Definition at line 68 of file messenger-usbhost.cpp.

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

Implements librealsense::platform::usb_messenger.

Definition at line 93 of file messenger-usbhost.cpp.

usb_status librealsense::platform::usb_messenger_usbhost::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 55 of file messenger-usbhost.cpp.

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

Implements librealsense::platform::usb_messenger.

Definition at line 81 of file messenger-usbhost.cpp.

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

Implements librealsense::platform::usb_messenger.

Definition at line 38 of file messenger-usbhost.cpp.

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

Implements librealsense::platform::usb_messenger.

Definition at line 88 of file messenger-usbhost.cpp.

Member Data Documentation

std::shared_ptr<usb_device_usbhost> librealsense::platform::usb_messenger_usbhost::_device
private

Definition at line 40 of file messenger-usbhost.h.

std::shared_ptr<handle_usbhost> librealsense::platform::usb_messenger_usbhost::_handle
private

Definition at line 42 of file messenger-usbhost.h.

std::mutex librealsense::platform::usb_messenger_usbhost::_mutex
private

Definition at line 41 of file messenger-usbhost.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