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

#include <backend-hid.h>

Public Member Functions

const std::stringget_sensor_name () const
 
 iio_hid_sensor (const std::string &device_path, uint32_t frequency)
 
void start_capture (hid_callback sensor_callback)
 
void stop_capture ()
 
 ~iio_hid_sensor ()
 

Private Member Functions

void clear_buffer ()
 
void create_channel_array ()
 
uint32_t get_channel_size () const
 
uint32_t get_output_size () const
 
std::string get_sampling_frequency_name () const
 
bool has_metadata ()
 
void init (uint32_t frequency)
 
void read_device_inputs ()
 
void set_frequency (uint32_t frequency)
 
void set_power (bool on)
 
void signal_stop ()
 

Static Private Member Functions

static bool sort_hids (hid_input *first, hid_input *second)
 

Private Attributes

hid_callback _callback
 
std::list< hid_input * > _channels
 
int _fd
 
std::unique_ptr< std::thread > _hid_thread
 
int _iio_device_number
 
std::string _iio_device_path
 
std::list< hid_input * > _inputs
 
std::atomic< bool > _is_capturing
 
dispatcher _pm_dispatcher
 
std::unique_ptr< std::thread > _pm_thread
 
std::string _sampling_frequency_name
 
std::string _sensor_name
 
int _stop_pipe_fd [2]
 

Detailed Description

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

Constructor & Destructor Documentation

librealsense::platform::iio_hid_sensor::iio_hid_sensor ( const std::string device_path,
uint32_t  frequency 
)

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

librealsense::platform::iio_hid_sensor::~iio_hid_sensor ( )

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

Member Function Documentation

void librealsense::platform::iio_hid_sensor::clear_buffer ( )
private

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

void librealsense::platform::iio_hid_sensor::create_channel_array ( )
private

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

uint32_t librealsense::platform::iio_hid_sensor::get_channel_size ( ) const
private

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

uint32_t librealsense::platform::iio_hid_sensor::get_output_size ( ) const
private

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

std::string librealsense::platform::iio_hid_sensor::get_sampling_frequency_name ( ) const
private

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

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

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

bool librealsense::platform::iio_hid_sensor::has_metadata ( )
private

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

void librealsense::platform::iio_hid_sensor::init ( uint32_t  frequency)
private

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

void librealsense::platform::iio_hid_sensor::read_device_inputs ( )
private

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

void librealsense::platform::iio_hid_sensor::set_frequency ( uint32_t  frequency)
private

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

void librealsense::platform::iio_hid_sensor::set_power ( bool  on)
private

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

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

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

bool librealsense::platform::iio_hid_sensor::sort_hids ( hid_input first,
hid_input second 
)
staticprivate

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

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

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

void librealsense::platform::iio_hid_sensor::stop_capture ( )

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

Member Data Documentation

hid_callback librealsense::platform::iio_hid_sensor::_callback
private

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

std::list<hid_input*> librealsense::platform::iio_hid_sensor::_channels
private

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

int librealsense::platform::iio_hid_sensor::_fd
private

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

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

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

int librealsense::platform::iio_hid_sensor::_iio_device_number
private

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

std::string librealsense::platform::iio_hid_sensor::_iio_device_path
private

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

std::list<hid_input*> librealsense::platform::iio_hid_sensor::_inputs
private

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

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

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

dispatcher librealsense::platform::iio_hid_sensor::_pm_dispatcher
private

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

std::unique_ptr<std::thread> librealsense::platform::iio_hid_sensor::_pm_thread
private

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

std::string librealsense::platform::iio_hid_sensor::_sampling_frequency_name
private

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

std::string librealsense::platform::iio_hid_sensor::_sensor_name
private

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

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

Definition at line 174 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