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

#include <l500-options.h>

Inheritance diagram for librealsense::l500_hw_options:
Inheritance graph
[legend]

Public Member Functions

void enable_recording (std::function< void(const option &)> recording_action) override
 
const char * get_description () const override
 
option_range get_range () const override
 
bool is_enabled () const override
 
bool is_read_only () const override
 
 l500_hw_options (l500_device *l500_dev, hw_monitor *hw_monitor, l500_control type, option *resolution, const std::string &description, firmware_version fw_version, std::shared_ptr< digital_gain_option > digital_gain)
 
float query () const override
 
float query_current (rs2_sensor_mode mode) const
 
float query_new_fw_default (bool &success) const
 
float query_old_fw_default () const
 
void set (float value) override
 
void set_default (float def)
 
void set_manually (bool set)
 
void set_read_only (bool read_only)
 
- Public Member Functions inherited from librealsense::option
virtual void create_snapshot (std::shared_ptr< option > &snapshot) const
 
virtual const char * get_value_description (float) const
 
virtual ~option ()=default
 
- Public Member Functions inherited from librealsense::recordable< option >
virtual ~recordable ()=default
 

Private Member Functions

float query_default (bool &success) const
 

Private Attributes

std::string _description
 
std::shared_ptr< digital_gain_option_digital_gain
 
firmware_version _fw_version
 
uint32_t _height
 
hw_monitor_hw_monitor
 
bool _is_read_only
 
l500_device_l500_dev
 
option_range _range
 
option_resolution
 
l500_control _type
 
bool _was_set_manually
 
uint32_t _width
 

Detailed Description

Definition at line 62 of file l500-options.h.

Constructor & Destructor Documentation

librealsense::l500_hw_options::l500_hw_options ( l500_device l500_dev,
hw_monitor hw_monitor,
l500_control  type,
option resolution,
const std::string description,
firmware_version  fw_version,
std::shared_ptr< digital_gain_option digital_gain 
)

Definition at line 58 of file l500-options.cpp.

Member Function Documentation

void librealsense::l500_hw_options::enable_recording ( std::function< void(const option &)>  recording_function)
overridevirtual

Instruct the derived class to begin notifying on changes Derived class should call the recording_function with a reference of themselves

Implements librealsense::recordable< option >.

Definition at line 124 of file l500-options.cpp.

const char* librealsense::l500_hw_options::get_description ( ) const
inlineoverridevirtual

Implements librealsense::option.

Definition at line 73 of file l500-options.h.

option_range librealsense::l500_hw_options::get_range ( ) const
overridevirtual

Implements librealsense::option.

Definition at line 40 of file l500-options.cpp.

bool librealsense::l500_hw_options::is_enabled ( ) const
inlineoverridevirtual

Implements librealsense::option.

Definition at line 71 of file l500-options.h.

bool librealsense::l500_hw_options::is_read_only ( ) const
inlineoverridevirtual

Reimplemented from librealsense::option.

Definition at line 93 of file l500-options.h.

float librealsense::l500_hw_options::query ( void  ) const
overridevirtual

Implements librealsense::option.

Definition at line 20 of file l500-options.cpp.

float librealsense::l500_hw_options::query_current ( rs2_sensor_mode  mode) const

Definition at line 190 of file l500-options.cpp.

float librealsense::l500_hw_options::query_default ( bool &  success) const
private

Definition at line 45 of file l500-options.cpp.

float librealsense::l500_hw_options::query_new_fw_default ( bool &  success) const

Definition at line 130 of file l500-options.cpp.

float librealsense::l500_hw_options::query_old_fw_default ( ) const

Definition at line 166 of file l500-options.cpp.

void librealsense::l500_hw_options::set ( float  value)
overridevirtual

Implements librealsense::option.

Definition at line 25 of file l500-options.cpp.

void librealsense::l500_hw_options::set_default ( float  def)

Definition at line 109 of file l500-options.cpp.

void librealsense::l500_hw_options::set_manually ( bool  set)

Definition at line 119 of file l500-options.cpp.

void librealsense::l500_hw_options::set_read_only ( bool  read_only)

Definition at line 114 of file l500-options.cpp.

Member Data Documentation

std::string librealsense::l500_hw_options::_description
private

Definition at line 108 of file l500-options.h.

std::shared_ptr< digital_gain_option > librealsense::l500_hw_options::_digital_gain
private

Definition at line 110 of file l500-options.h.

firmware_version librealsense::l500_hw_options::_fw_version
private

Definition at line 109 of file l500-options.h.

uint32_t librealsense::l500_hw_options::_height
private

Definition at line 106 of file l500-options.h.

hw_monitor* librealsense::l500_hw_options::_hw_monitor
private

Definition at line 103 of file l500-options.h.

bool librealsense::l500_hw_options::_is_read_only
private

Definition at line 111 of file l500-options.h.

l500_device* librealsense::l500_hw_options::_l500_dev
private

Definition at line 102 of file l500-options.h.

option_range librealsense::l500_hw_options::_range
private

Definition at line 104 of file l500-options.h.

option* librealsense::l500_hw_options::_resolution
private

Definition at line 107 of file l500-options.h.

l500_control librealsense::l500_hw_options::_type
private

Definition at line 101 of file l500-options.h.

bool librealsense::l500_hw_options::_was_set_manually
private

Definition at line 112 of file l500-options.h.

uint32_t librealsense::l500_hw_options::_width
private

Definition at line 105 of file l500-options.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