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

#include <handle-libusb.h>

Public Member Functions

libusb_device_handle * get ()
 
 handle_libusb (std::shared_ptr< usb_context > context, libusb_device *device, std::shared_ptr< usb_interface_libusb > interface)
 
 ~handle_libusb ()
 

Private Member Functions

usb_status claim_interface (uint8_t interface)
 
void claim_interface_or_throw (uint8_t interface)
 

Private Attributes

std::shared_ptr< usb_context_context
 
std::shared_ptr< usb_interface_libusb_first_interface
 
libusb_device_handle * _handle
 

Detailed Description

Definition at line 39 of file handle-libusb.h.

Constructor & Destructor Documentation

librealsense::platform::handle_libusb::handle_libusb ( std::shared_ptr< usb_context context,
libusb_device *  device,
std::shared_ptr< usb_interface_libusb interface 
)
inline

Definition at line 42 of file handle-libusb.h.

librealsense::platform::handle_libusb::~handle_libusb ( )
inline

Definition at line 62 of file handle-libusb.h.

Member Function Documentation

usb_status librealsense::platform::handle_libusb::claim_interface ( uint8_t  interface)
inlineprivate

Definition at line 83 of file handle-libusb.h.

void librealsense::platform::handle_libusb::claim_interface_or_throw ( uint8_t  interface)
inlineprivate

Definition at line 76 of file handle-libusb.h.

libusb_device_handle* librealsense::platform::handle_libusb::get ( )
inline

Definition at line 70 of file handle-libusb.h.

Member Data Documentation

std::shared_ptr<usb_context> librealsense::platform::handle_libusb::_context
private

Definition at line 102 of file handle-libusb.h.

std::shared_ptr<usb_interface_libusb> librealsense::platform::handle_libusb::_first_interface
private

Definition at line 103 of file handle-libusb.h.

libusb_device_handle* librealsense::platform::handle_libusb::_handle
private

Definition at line 104 of file handle-libusb.h.


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


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