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

#include <context-libusb.h>

Public Member Functions

size_t device_count ()
 
libusb_context * get ()
 
libusb_device * get_device (uint8_t index)
 
void start_event_handler ()
 
void stop_event_handler ()
 
 usb_context ()
 
 ~usb_context ()
 

Private Attributes

size_t _count
 
struct libusb_context * _ctx
 
std::thread _event_handler
 
int _handler_requests = 0
 
int _kill_handler_thread = 0
 
libusb_device ** _list
 
std::mutex _mutex
 

Detailed Description

Definition at line 16 of file context-libusb.h.

Constructor & Destructor Documentation

librealsense::platform::usb_context::usb_context ( )

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

librealsense::platform::usb_context::~usb_context ( )

Definition at line 21 of file context-libusb.cpp.

Member Function Documentation

size_t librealsense::platform::usb_context::device_count ( )

Definition at line 66 of file context-libusb.cpp.

libusb_context * librealsense::platform::usb_context::get ( )

Definition at line 30 of file context-libusb.cpp.

libusb_device * librealsense::platform::usb_context::get_device ( uint8_t  index)

Definition at line 61 of file context-libusb.cpp.

void librealsense::platform::usb_context::start_event_handler ( )

Definition at line 35 of file context-libusb.cpp.

void librealsense::platform::usb_context::stop_event_handler ( )

Definition at line 52 of file context-libusb.cpp.

Member Data Documentation

size_t librealsense::platform::usb_context::_count
private

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

struct libusb_context* librealsense::platform::usb_context::_ctx
private

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

std::thread librealsense::platform::usb_context::_event_handler
private

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

int librealsense::platform::usb_context::_handler_requests = 0
private

Definition at line 34 of file context-libusb.h.

int librealsense::platform::usb_context::_kill_handler_thread = 0
private

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

libusb_device** librealsense::platform::usb_context::_list
private

Definition at line 32 of file context-libusb.h.

std::mutex librealsense::platform::usb_context::_mutex
private

Definition at line 31 of file context-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