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

#include <hid-device.h>

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

Public Member Functions

void close () override
 
virtual std::vector< uint8_tget_custom_report_data (const std::string &custom_sensor_name, const std::string &report_name, custom_sensor_report_field report_field) override
 
std::vector< hid_sensorget_sensors () override
 
void open (const std::vector< hid_profile > &hid_profiles) override
 
void register_profiles (const std::vector< hid_profile > &hid_profiles) override
 
 rs_hid_device (rs_usb_device usb_device)
 
void start_capture (hid_callback callback) override
 
void stop_capture () override
 
virtual ~rs_hid_device ()
 
- Public Member Functions inherited from librealsense::platform::hid_device
virtual ~hid_device ()=default
 

Private Member Functions

rs_usb_endpoint get_hid_endpoint ()
 
rs_usb_interface get_hid_interface ()
 
void handle_interrupt ()
 
usb_status set_feature_report (unsigned char power, int report_id, int fps=0)
 

Private Attributes

dispatcher _action_dispatcher
 
hid_callback _callback
 
std::vector< hid_profile_configured_profiles
 
std::shared_ptr< active_object<> > _handle_interrupts_thread
 
std::vector< hid_profile_hid_profiles
 
std::map< int, std::string_id_to_sensor
 
rs_usb_messenger _messenger
 
single_consumer_queue< REALSENSE_HID_REPORT_queue
 
std::shared_ptr< platform::usb_request_callback_request_callback
 
std::vector< rs_usb_request_requests
 
bool _running = false
 
std::map< std::string, int > _sensor_to_id
 
rs_usb_device _usb_device
 

Detailed Description

Definition at line 30 of file hid-device.h.

Constructor & Destructor Documentation

librealsense::platform::rs_hid_device::rs_hid_device ( rs_usb_device  usb_device)

Definition at line 53 of file hid-device.cpp.

librealsense::platform::rs_hid_device::~rs_hid_device ( )
virtual

Definition at line 75 of file hid-device.cpp.

Member Function Documentation

void librealsense::platform::rs_hid_device::close ( )
overridevirtual

Implements librealsense::platform::hid_device.

Definition at line 103 of file hid-device.cpp.

virtual std::vector<uint8_t> librealsense::platform::rs_hid_device::get_custom_report_data ( const std::string custom_sensor_name,
const std::string report_name,
custom_sensor_report_field  report_field 
)
inlineoverridevirtual

Implements librealsense::platform::hid_device.

Definition at line 42 of file hid-device.h.

rs_usb_endpoint librealsense::platform::rs_hid_device::get_hid_endpoint ( )
private

Definition at line 372 of file hid-device.cpp.

rs_usb_interface librealsense::platform::rs_hid_device::get_hid_interface ( )
private

Definition at line 359 of file hid-device.cpp.

std::vector< hid_sensor > librealsense::platform::rs_hid_device::get_sensors ( )
overridevirtual

Implements librealsense::platform::hid_device.

Definition at line 84 of file hid-device.cpp.

void librealsense::platform::rs_hid_device::handle_interrupt ( )
private

Definition at line 189 of file hid-device.cpp.

void librealsense::platform::rs_hid_device::open ( const std::vector< hid_profile > &  hid_profiles)
overridevirtual

Implements librealsense::platform::hid_device.

Definition at line 94 of file hid-device.cpp.

void librealsense::platform::rs_hid_device::register_profiles ( const std::vector< hid_profile > &  hid_profiles)
inlineoverridevirtual

Implements librealsense::platform::hid_device.

Definition at line 36 of file hid-device.h.

usb_status librealsense::platform::rs_hid_device::set_feature_report ( unsigned char  power,
int  report_id,
int  fps = 0 
)
private

Definition at line 236 of file hid-device.cpp.

void librealsense::platform::rs_hid_device::start_capture ( hid_callback  callback)
overridevirtual

Implements librealsense::platform::hid_device.

Definition at line 133 of file hid-device.cpp.

void librealsense::platform::rs_hid_device::stop_capture ( )
overridevirtual

Implements librealsense::platform::hid_device.

Definition at line 109 of file hid-device.cpp.

Member Data Documentation

dispatcher librealsense::platform::rs_hid_device::_action_dispatcher
private

Definition at line 56 of file hid-device.h.

hid_callback librealsense::platform::rs_hid_device::_callback
private

Definition at line 58 of file hid-device.h.

std::vector<hid_profile> librealsense::platform::rs_hid_device::_configured_profiles
private

Definition at line 71 of file hid-device.h.

std::shared_ptr<active_object<> > librealsense::platform::rs_hid_device::_handle_interrupts_thread
private

Definition at line 73 of file hid-device.h.

std::vector<hid_profile> librealsense::platform::rs_hid_device::_hid_profiles
private

Definition at line 68 of file hid-device.h.

std::map<int, std::string> librealsense::platform::rs_hid_device::_id_to_sensor
private

Definition at line 69 of file hid-device.h.

rs_usb_messenger librealsense::platform::rs_hid_device::_messenger
private

Definition at line 63 of file hid-device.h.

single_consumer_queue<REALSENSE_HID_REPORT> librealsense::platform::rs_hid_device::_queue
private

Definition at line 72 of file hid-device.h.

std::shared_ptr<platform::usb_request_callback> librealsense::platform::rs_hid_device::_request_callback
private

Definition at line 65 of file hid-device.h.

std::vector<rs_usb_request> librealsense::platform::rs_hid_device::_requests
private

Definition at line 64 of file hid-device.h.

bool librealsense::platform::rs_hid_device::_running = false
private

Definition at line 55 of file hid-device.h.

std::map<std::string, int> librealsense::platform::rs_hid_device::_sensor_to_id
private

Definition at line 70 of file hid-device.h.

rs_usb_device librealsense::platform::rs_hid_device::_usb_device
private

Definition at line 59 of file hid-device.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