Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
libusb
context-libusb.h
Go to the documentation of this file.
1
// License: Apache 2.0. See LICENSE file in root directory.
2
// Copyright(c) 2015 Intel Corporation. All Rights Reserved.
3
4
#pragma once
5
6
#include "
usb/usb-types.h
"
7
#include "../concurrency.h"
8
9
#include <memory>
10
#include <libusb.h>
11
12
namespace
librealsense
13
{
14
namespace
platform
15
{
16
class
usb_context
17
{
18
public
:
19
usb_context
();
20
~usb_context
();
21
22
libusb_context*
get
();
23
24
void
start_event_handler
();
25
void
stop_event_handler
();
26
27
size_t
device_count
();
28
libusb_device*
get_device
(
uint8_t
index
);
29
30
private
:
31
std::mutex
_mutex
;
32
libusb_device **
_list
;
33
size_t
_count
;
34
int
_handler_requests
= 0;
35
struct
libusb_context*
_ctx
;
36
int
_kill_handler_thread
= 0;
37
std::thread
_event_handler
;
38
};
39
}
40
}
librealsense::platform::usb_context::usb_context
usb_context()
Definition:
context-libusb.cpp:11
librealsense::platform::usb_context::device_count
size_t device_count()
Definition:
context-libusb.cpp:66
librealsense::platform::usb_context::_list
libusb_device ** _list
Definition:
context-libusb.h:32
usb-types.h
uint8_t
unsigned char uint8_t
Definition:
stdint.h:78
librealsense::platform::usb_context::~usb_context
~usb_context()
Definition:
context-libusb.cpp:21
librealsense::platform::usb_context::start_event_handler
void start_event_handler()
Definition:
context-libusb.cpp:35
index
GLuint index
Definition:
glad/glad/glad.h:2778
librealsense::platform::usb_context::_mutex
std::mutex _mutex
Definition:
context-libusb.h:31
librealsense
Definition:
calibration-model.h:6
librealsense::platform::usb_context::get_device
libusb_device * get_device(uint8_t index)
Definition:
context-libusb.cpp:61
librealsense::platform::usb_context::_handler_requests
int _handler_requests
Definition:
context-libusb.h:34
librealsense::platform::usb_context::_kill_handler_thread
int _kill_handler_thread
Definition:
context-libusb.h:36
librealsense::platform::usb_context::_event_handler
std::thread _event_handler
Definition:
context-libusb.h:37
librealsense::platform::usb_context::stop_event_handler
void stop_event_handler()
Definition:
context-libusb.cpp:52
librealsense::platform::usb_context
Definition:
context-libusb.h:16
librealsense::platform::usb_context::_count
size_t _count
Definition:
context-libusb.h:33
librealsense::platform::usb_context::_ctx
struct libusb_context * _ctx
Definition:
context-libusb.h:35
librealsense2
Author(s): Sergey Dorodnicov
, Doron Hirshberg
, Mark Horn
, Reagan Lopez
, Itay Carpis
autogenerated on Mon May 3 2021 02:47:12