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

#include <backend-hid.h>

Public Member Functions

std::vector< uint8_tget_report_data (const std::string &report_name, custom_sensor_report_field report_field)
 
const std::stringget_sensor_name () const
 
 hid_custom_sensor (const std::string &device_path, const std::string &sensor_name)
 
void start_capture (hid_callback sensor_callback)
 
void stop_capture ()
 
 ~hid_custom_sensor ()
 

Private Member Functions

void enable (bool state)
 
void init ()
 
std::vector< uint8_tread_report (const std::string &name_report_path)
 
void signal_stop ()
 

Private Attributes

hid_callback _callback
 
std::string _custom_device_name
 
std::string _custom_device_path
 
std::string _custom_sensor_name
 
int _fd
 
std::unique_ptr< std::thread > _hid_thread
 
std::atomic< bool > _is_capturing
 
std::map< std::string, std::string_reports
 
int _stop_pipe_fd [2]
 

Detailed Description

Definition at line 98 of file backend-hid.h.

Constructor & Destructor Documentation

librealsense::platform::hid_custom_sensor::hid_custom_sensor ( const std::string device_path,
const std::string sensor_name 
)

Definition at line 153 of file backend-hid.cpp.

librealsense::platform::hid_custom_sensor::~hid_custom_sensor ( )

Definition at line 166 of file backend-hid.cpp.

Member Function Documentation

void librealsense::platform::hid_custom_sensor::enable ( bool  state)
private

Definition at line 412 of file backend-hid.cpp.

std::vector< uint8_t > librealsense::platform::hid_custom_sensor::get_report_data ( const std::string report_name,
custom_sensor_report_field  report_field 
)

Definition at line 179 of file backend-hid.cpp.

const std::string& librealsense::platform::hid_custom_sensor::get_sensor_name ( ) const
inline

Definition at line 106 of file backend-hid.h.

void librealsense::platform::hid_custom_sensor::init ( )
private

Definition at line 367 of file backend-hid.cpp.

std::vector< uint8_t > librealsense::platform::hid_custom_sensor::read_report ( const std::string name_report_path)
private

Definition at line 348 of file backend-hid.cpp.

void librealsense::platform::hid_custom_sensor::signal_stop ( )
private

Definition at line 437 of file backend-hid.cpp.

void librealsense::platform::hid_custom_sensor::start_capture ( hid_callback  sensor_callback)

Definition at line 201 of file backend-hid.cpp.

void librealsense::platform::hid_custom_sensor::stop_capture ( )

Definition at line 322 of file backend-hid.cpp.

Member Data Documentation

hid_callback librealsense::platform::hid_custom_sensor::_callback
private

Definition at line 127 of file backend-hid.h.

std::string librealsense::platform::hid_custom_sensor::_custom_device_name
private

Definition at line 126 of file backend-hid.h.

std::string librealsense::platform::hid_custom_sensor::_custom_device_path
private

Definition at line 124 of file backend-hid.h.

std::string librealsense::platform::hid_custom_sensor::_custom_sensor_name
private

Definition at line 125 of file backend-hid.h.

int librealsense::platform::hid_custom_sensor::_fd
private

Definition at line 121 of file backend-hid.h.

std::unique_ptr<std::thread> librealsense::platform::hid_custom_sensor::_hid_thread
private

Definition at line 129 of file backend-hid.h.

std::atomic<bool> librealsense::platform::hid_custom_sensor::_is_capturing
private

Definition at line 128 of file backend-hid.h.

std::map<std::string, std::string> librealsense::platform::hid_custom_sensor::_reports
private

Definition at line 123 of file backend-hid.h.

int librealsense::platform::hid_custom_sensor::_stop_pipe_fd[2]
private

Definition at line 122 of file backend-hid.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