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

#include <ds5-thermal-monitor.h>

Public Member Functions

void add_observer (std::function< void(float)> callback)
 
 ds5_thermal_monitor (std::shared_ptr< option > temp_option, std::shared_ptr< option > tl_toggle)
 
void update (bool on)
 
 ~ds5_thermal_monitor ()
 

Private Member Functions

 ds5_thermal_monitor (const ds5_thermal_monitor &)=delete
 
void notify (float temperature)
 
ds5_thermal_monitoroperator= (const ds5_thermal_monitor &)=delete
 
void polling (dispatcher::cancellable_timer cancellable_timer)
 

Private Attributes

bool _hw_loop_on
 
active_object _monitor
 
unsigned int _poll_intervals_ms
 
float _temp_base
 
std::weak_ptr< option_temperature_sensor
 
std::vector< std::function< void(float)> > _thermal_changes_callbacks
 
float _thermal_threshold_deg
 
std::weak_ptr< option_tl_activation
 

Detailed Description

Definition at line 11 of file ds5-thermal-monitor.h.

Constructor & Destructor Documentation

librealsense::ds5_thermal_monitor::ds5_thermal_monitor ( std::shared_ptr< option temp_option,
std::shared_ptr< option tl_toggle 
)

Definition at line 12 of file ds5-thermal-monitor.cpp.

librealsense::ds5_thermal_monitor::~ds5_thermal_monitor ( )

Definition at line 27 of file ds5-thermal-monitor.cpp.

librealsense::ds5_thermal_monitor::ds5_thermal_monitor ( const ds5_thermal_monitor )
privatedelete

Member Function Documentation

void librealsense::ds5_thermal_monitor::add_observer ( std::function< void(float)>  callback)
inline

Definition at line 19 of file ds5-thermal-monitor.h.

void librealsense::ds5_thermal_monitor::notify ( float  temperature)
private

Definition at line 107 of file ds5-thermal-monitor.cpp.

ds5_thermal_monitor& librealsense::ds5_thermal_monitor::operator= ( const ds5_thermal_monitor )
privatedelete
void librealsense::ds5_thermal_monitor::polling ( dispatcher::cancellable_timer  cancellable_timer)
private

Definition at line 51 of file ds5-thermal-monitor.cpp.

void librealsense::ds5_thermal_monitor::update ( bool  on)

Definition at line 34 of file ds5-thermal-monitor.cpp.

Member Data Documentation

bool librealsense::ds5_thermal_monitor::_hw_loop_on
private

Definition at line 36 of file ds5-thermal-monitor.h.

active_object librealsense::ds5_thermal_monitor::_monitor
private

Definition at line 32 of file ds5-thermal-monitor.h.

unsigned int librealsense::ds5_thermal_monitor::_poll_intervals_ms
private

Definition at line 33 of file ds5-thermal-monitor.h.

float librealsense::ds5_thermal_monitor::_temp_base
private

Definition at line 35 of file ds5-thermal-monitor.h.

std::weak_ptr<option> librealsense::ds5_thermal_monitor::_temperature_sensor
private

Definition at line 37 of file ds5-thermal-monitor.h.

std::vector<std::function<void(float)> > librealsense::ds5_thermal_monitor::_thermal_changes_callbacks
private

Definition at line 39 of file ds5-thermal-monitor.h.

float librealsense::ds5_thermal_monitor::_thermal_threshold_deg
private

Definition at line 34 of file ds5-thermal-monitor.h.

std::weak_ptr<option> librealsense::ds5_thermal_monitor::_tl_activation
private

Definition at line 38 of file ds5-thermal-monitor.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:37