Classes | Namespaces | Macros | Enumerations | Functions | Variables
ds5-private.h File Reference
#include "backend.h"
#include "types.h"
#include "fw-update/fw-update-unsigned.h"
#include <map>
#include <iomanip>
#include <string>
Include dependency graph for ds5-private.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  librealsense::ds::coefficients_table
 
struct  librealsense::ds::depth_table_control
 
struct  librealsense::ds::dm_v2_calib_info
 
struct  librealsense::ds::dm_v2_calibration_table
 
struct  librealsense::ds::dm_v2_eeprom
 
struct  librealsense::ds::dm_v2_imu_intrinsic
 
struct  librealsense::ds::ds5_calibration
 
union  librealsense::ds::eeprom_imu_table
 
struct  librealsense::ds::extrinsics_table
 
struct  librealsense::ds::fisheye_calibration_table
 
struct  librealsense::ds::fisheye_extrinsics_table
 
struct  librealsense::ds::imu_calibration_table
 
struct  librealsense::ds::imu_intrinsic
 
struct  librealsense::ds::imu_intrinsics
 
struct  librealsense::ds::new_calibration_item
 
struct  librealsense::ds::rgb_calibration_table
 
struct  librealsense::ds::table_header
 
struct  librealsense::ds::tm1_calib_model
 
struct  librealsense::ds::tm1_calibration_table
 
struct  librealsense::ds::tm1_eeprom
 
struct  librealsense::ds::tm1_module_info
 
struct  librealsense::ds::tm1_serial_num_table
 

Namespaces

 librealsense
 
 librealsense::ds
 

Macros

#define ENUM2STR(x)   case(x):return VAR_ARG_STR(x);
 
#define LOG_DEBUG_THERMAL_LOOP(...)
 
#define TOSTRING(arg)   #arg
 
#define VAR_ARG_STR(x)   TOSTRING(x)
 

Enumerations

enum  librealsense::ds::advanced_query_mode { librealsense::ds::GET_VAL = 0, librealsense::ds::GET_MIN = 1, librealsense::ds::GET_MAX = 2 }
 
enum  librealsense::ds::calibration_table_id {
  librealsense::ds::coefficients_table_id = 25, librealsense::ds::depth_calibration_id = 31, librealsense::ds::rgb_calibration_id = 32, librealsense::ds::fisheye_calibration_id = 33,
  librealsense::ds::imu_calibration_id = 34, librealsense::ds::lens_shading_id = 35, librealsense::ds::projector_id = 36, librealsense::ds::max_id = -1
}
 
enum  librealsense::ds::d400_caps : uint16_t {
  librealsense::ds::d400_caps::CAP_UNDEFINED = 0, librealsense::ds::d400_caps::CAP_ACTIVE_PROJECTOR = (1u << 0), librealsense::ds::d400_caps::CAP_RGB_SENSOR = (1u << 1), librealsense::ds::d400_caps::CAP_FISHEYE_SENSOR = (1u << 2),
  librealsense::ds::d400_caps::CAP_IMU_SENSOR = (1u << 3), librealsense::ds::d400_caps::CAP_GLOBAL_SHUTTER = (1u << 4), librealsense::ds::d400_caps::CAP_ROLLING_SHUTTER = (1u << 5), librealsense::ds::d400_caps::CAP_BMI_055 = (1u << 6),
  librealsense::ds::d400_caps::CAP_BMI_085 = (1u << 7), librealsense::ds::d400_caps::CAP_MAX
}
 
enum  librealsense::ds::ds5_notifications_types {
  librealsense::ds::success = 0, librealsense::ds::hot_laser_power_reduce, librealsense::ds::hot_laser_disable, librealsense::ds::flag_B_laser_disable,
  librealsense::ds::stereo_module_not_connected, librealsense::ds::eeprom_corrupted, librealsense::ds::calibration_corrupted, librealsense::ds::mm_upd_fail,
  librealsense::ds::isp_upd_fail, librealsense::ds::mm_force_pause, librealsense::ds::mm_failure, librealsense::ds::usb_scp_overflow,
  librealsense::ds::usb_rec_overflow, librealsense::ds::usb_cam_overflow, librealsense::ds::mipi_left_error, librealsense::ds::mipi_right_error,
  librealsense::ds::mipi_rt_error, librealsense::ds::mipi_fe_error, librealsense::ds::i2c_cfg_left_error, librealsense::ds::i2c_cfg_right_error,
  librealsense::ds::i2c_cfg_rt_error, librealsense::ds::i2c_cfg_fe_error, librealsense::ds::stream_not_start_z, librealsense::ds::stream_not_start_y,
  librealsense::ds::stream_not_start_cam, librealsense::ds::rec_error
}
 
enum  librealsense::ds::ds5_rect_resolutions : unsigned short {
  librealsense::ds::res_1920_1080, librealsense::ds::res_1280_720, librealsense::ds::res_640_480, librealsense::ds::res_848_480,
  librealsense::ds::res_640_360, librealsense::ds::res_424_240, librealsense::ds::res_320_240, librealsense::ds::res_480_270,
  librealsense::ds::res_1280_800, librealsense::ds::res_960_540, librealsense::ds::reserved_1, librealsense::ds::reserved_2,
  librealsense::ds::res_640_400, librealsense::ds::res_576_576, librealsense::ds::res_720_720, librealsense::ds::res_1152_1152,
  librealsense::ds::max_ds5_rect_resolutions
}
 
enum  librealsense::ds::fw_cmd : uint8_t {
  librealsense::ds::MRD = 0x01, librealsense::ds::FRB = 0x09, librealsense::ds::FWB = 0x0a, librealsense::ds::FES = 0x0b,
  librealsense::ds::FEF = 0x0c, librealsense::ds::FSRU = 0x0d, librealsense::ds::FPLOCK = 0x0e, librealsense::ds::GLD = 0x0f,
  librealsense::ds::GVD = 0x10, librealsense::ds::GETINTCAL = 0x15, librealsense::ds::SETINTCAL = 0x16, librealsense::ds::LOADINTCAL = 0x1D,
  librealsense::ds::DFU = 0x1E, librealsense::ds::HWRST = 0x20, librealsense::ds::OBW = 0x29, librealsense::ds::SET_ADV = 0x2B,
  librealsense::ds::GET_ADV = 0x2C, librealsense::ds::EN_ADV = 0x2D, librealsense::ds::UAMG = 0X30, librealsense::ds::PFD = 0x3b,
  librealsense::ds::SETAEROI = 0x44, librealsense::ds::GETAEROI = 0x45, librealsense::ds::MMER = 0x4F, librealsense::ds::CALIBRECALC = 0x51,
  librealsense::ds::GET_EXTRINSICS = 0x53, librealsense::ds::CAL_RESTORE_DFLT = 0x61, librealsense::ds::SETINTCALNEW = 0x62, librealsense::ds::SET_CAM_SYNC = 0x69,
  librealsense::ds::GET_CAM_SYNC = 0x6A, librealsense::ds::SETRGBAEROI = 0x75, librealsense::ds::GETRGBAEROI = 0x76, librealsense::ds::SET_PWM_ON_OFF = 0x77,
  librealsense::ds::GET_PWM_ON_OFF = 0x78, librealsense::ds::SETSUBPRESET = 0x7B, librealsense::ds::GETSUBPRESET = 0x7C, librealsense::ds::GETSUBPRESETID = 0x7D,
  librealsense::ds::RECPARAMSGET = 0x7E, librealsense::ds::LASERONCONST = 0x7F, librealsense::ds::AUTO_CALIB = 0x80
}
 
enum  librealsense::ds::gvd_fields {
  librealsense::ds::camera_fw_version_offset = 12, librealsense::ds::is_camera_locked_offset = 25, librealsense::ds::module_serial_offset = 48, librealsense::ds::module_asic_serial_offset = 64,
  librealsense::ds::fisheye_sensor_lb = 112, librealsense::ds::fisheye_sensor_hb = 113, librealsense::ds::imu_acc_chip_id = 124, librealsense::ds::depth_sensor_type = 166,
  librealsense::ds::active_projector = 170, librealsense::ds::rgb_sensor = 174, librealsense::ds::imu_sensor = 178, librealsense::ds::motion_module_fw_version_offset = 212
}
 
enum  librealsense::ds::gvd_fields_size { librealsense::ds::module_serial_size = 6 }
 
enum  librealsense::ds::imu_eeprom_id : uint16_t { librealsense::ds::dm_v2_eeprom_id = 0x0101, librealsense::ds::tm1_eeprom_id = 0x0002, librealsense::ds::l500_eeprom_id = 0x0105 }
 
enum  librealsense::ds::inter_cam_sync_mode {
  librealsense::ds::INTERCAM_SYNC_DEFAULT = 0, librealsense::ds::INTERCAM_SYNC_MASTER = 1, librealsense::ds::INTERCAM_SYNC_SLAVE = 2, librealsense::ds::INTERCAM_SYNC_FULL_SLAVE = 3,
  librealsense::ds::INTERCAM_SYNC_MAX = 260
}
 

Functions

template<class T >
const T * librealsense::ds::check_calib (const std::vector< uint8_t > &raw_data)
 
rs2_motion_device_intrinsic librealsense::ds::create_motion_intrinsics (imu_intrinsic data)
 
std::vector< platform::uvc_device_info > librealsense::ds::filter_device_by_capability (const std::vector< platform::uvc_device_info > &devices, d400_caps caps)
 
std::string librealsense::ds::fw_cmd2str (const fw_cmd state)
 
pose librealsense::ds::get_color_stream_extrinsic (const std::vector< uint8_t > &raw_data)
 
pose librealsense::ds::get_fisheye_extrinsics_data (const std::vector< uint8_t > &raw_data)
 
flash_info librealsense::ds::get_flash_info (const std::vector< uint8_t > &flash_buffer)
 
rs2_intrinsics librealsense::ds::get_intrinsic_by_resolution (const std::vector< uint8_t > &raw_data, calibration_table_id table_id, uint32_t width, uint32_t height)
 
rs2_intrinsics librealsense::ds::get_intrinsic_by_resolution_coefficients_table (const std::vector< uint8_t > &raw_data, uint32_t width, uint32_t height)
 
rs2_intrinsics librealsense::ds::get_intrinsic_fisheye_table (const std::vector< uint8_t > &raw_data, uint32_t width, uint32_t height)
 
d400_caps librealsense::ds::operator& (const d400_caps lhs, const d400_caps rhs)
 
bool librealsense::ds::operator&& (d400_caps l, d400_caps r)
 
std::ostream & librealsense::ds::operator<< (std::ostream &stream, const d400_caps &cap)
 
d400_caps librealsense::ds::operator| (const d400_caps lhs, const d400_caps rhs)
 
d400_caps & librealsense::ds::operator|= (d400_caps &lhs, d400_caps rhs)
 
bool librealsense::ds::try_fetch_usb_device (std::vector< platform::usb_device_info > &devices, const platform::uvc_device_info &info, platform::usb_device_info &result)
 
bool librealsense::ds::try_get_intrinsic_by_resolution_new (const std::vector< uint8_t > &raw_data, uint32_t width, uint32_t height, rs2_intrinsics *result)
 
ds5_rect_resolutions librealsense::ds::width_height_to_ds5_rect_resolutions (uint32_t width, uint32_t height)
 

Variables

const std::vector< uint8_tlibrealsense::ds::alternating_emitter_pattern
 
const std::vector< uint8_tlibrealsense::ds::alternating_emitter_pattern_with_name
 
const uint8_t librealsense::ds::ALTERNATING_EMITTER_SUBPRESET_ID = 0x0f
 
static const std::map< d400_caps, std::stringlibrealsense::ds::d400_capabilities_names
 
const std::string librealsense::ds::DEPTH_STEREO = "Stereo Module"
 
const platform::extension_unit librealsense::ds::depth_xu
 
constexpr size_t librealsense::ds::dm_v2_calib_info_size = sizeof(dm_v2_calib_info)
 
constexpr size_t librealsense::ds::dm_v2_calibration_table_size = sizeof(dm_v2_calibration_table)
 
constexpr size_t librealsense::ds::dm_v2_eeprom_size = sizeof(dm_v2_eeprom)
 
const uint8_t librealsense::ds::DS5_ASIC_AND_PROJECTOR_TEMPERATURES = 9
 
const uint8_t librealsense::ds::DS5_DEPTH_EMITTER_ENABLED = 2
 
const uint8_t librealsense::ds::DS5_ENABLE_AUTO_EXPOSURE = 0xB
 
const uint8_t librealsense::ds::DS5_ENABLE_AUTO_WHITE_BALANCE = 0xA
 
const uint8_t librealsense::ds::DS5_ERROR_REPORTING = 7
 
const uint8_t librealsense::ds::DS5_EXPOSURE = 3
 
const uint8_t librealsense::ds::DS5_EXT_TRIGGER = 8
 
const std::map< uint8_t, std::stringlibrealsense::ds::ds5_fw_error_report
 
const uint8_t librealsense::ds::DS5_HARDWARE_PRESET = 6
 
const uint8_t librealsense::ds::DS5_HWMONITOR = 1
 
const uint8_t librealsense::ds::DS5_LASER_POWER = 4
 
const uint8_t librealsense::ds::DS5_LED_PWR = 0xE
 
const uint8_t librealsense::ds::DS5_THERMAL_COMPENSATION = 0xF
 
constexpr size_t librealsense::ds::eeprom_imu_table_size = sizeof(eeprom_imu_table)
 
const int librealsense::ds::etDepthTableControl = 9
 
constexpr size_t librealsense::ds::fisheye_calibration_table_size = sizeof(fisheye_calibration_table)
 
const uint8_t librealsense::ds::FISHEYE_EXPOSURE = 1
 
static const std::set< std::uint16_tlibrealsense::ds::fisheye_pid
 
const platform::extension_unit librealsense::ds::fisheye_xu
 
const uint32_t librealsense::ds::FLASH_INFO_HEADER_OFFSET = 0x001FFF00
 
const uint32_t librealsense::ds::FLASH_RO_TABLE_OF_CONTENT_OFFSET = 0x001FFE80
 
const uint32_t librealsense::ds::FLASH_RW_TABLE_OF_CONTENT_OFFSET = 0x0017FF80
 
const uint32_t librealsense::ds::FLASH_SECTOR_SIZE = 0x1000
 
const uint32_t librealsense::ds::FLASH_SIZE = 0x00200000
 
static const std::set< std::uint16_tlibrealsense::ds::hid_bmi_055_pid
 
static const std::set< std::uint16_tlibrealsense::ds::hid_bmi_085_pid
 
static const std::set< std::uint16_tlibrealsense::ds::hid_sensors_pid
 
const uint8_t librealsense::ds::I2C_IMU_BMI055_ID_ACC = 0xfa
 
const uint8_t librealsense::ds::I2C_IMU_BMI085_ID_ACC = 0x1f
 
constexpr size_t librealsense::ds::imu_calibration_table_size = sizeof(imu_calibration_table)
 
static const std::set< std::uint16_tlibrealsense::ds::multi_sensors_pid
 
const int librealsense::ds::REGISTER_CLOCK_0 = 0x0001613c
 
static std::map< ds5_rect_resolutions, int2 > librealsense::ds::resolutions_list
 
const uint16_t librealsense::ds::RS400_IMU_PID = 0x0af2
 
const uint16_t librealsense::ds::RS400_MM_PID = 0x0b00
 
const uint16_t librealsense::ds::RS400_PID = 0x0ad1
 
static const std::map< std::uint16_t, std::stringlibrealsense::ds::rs400_sku_names
 
static const std::set< std::uint16_tlibrealsense::ds::rs400_sku_pid
 
const uint16_t librealsense::ds::RS405_PID = 0x0B5B
 
const uint16_t librealsense::ds::RS405U_PID = 0x0b0c
 
const uint16_t librealsense::ds::RS410_MM_PID = 0x0aff
 
const uint16_t librealsense::ds::RS410_PID = 0x0ad2
 
const uint16_t librealsense::ds::RS415_PID = 0x0ad3
 
const uint16_t librealsense::ds::RS416_PID = 0x0b49
 
const uint16_t librealsense::ds::RS416_RGB_PID = 0x0B52
 
const uint16_t librealsense::ds::RS420_MM_PID = 0x0afe
 
const uint16_t librealsense::ds::RS420_PID = 0x0af6
 
const uint16_t librealsense::ds::RS430_MM_PID = 0x0ad5
 
const uint16_t librealsense::ds::RS430_MM_RGB_PID = 0x0b01
 
const uint16_t librealsense::ds::RS430_PID = 0x0ad4
 
const uint16_t librealsense::ds::RS430I_PID = 0x0b4b
 
const uint16_t librealsense::ds::RS435_RGB_PID = 0x0b07
 
const uint16_t librealsense::ds::RS435I_PID = 0x0b3a
 
const uint16_t librealsense::ds::RS455_PID = 0x0B5C
 
const uint16_t librealsense::ds::RS460_PID = 0x0b03
 
const uint16_t librealsense::ds::RS465_PID = 0x0b4d
 
const uint16_t librealsense::ds::RS_RECOVERY_PID = 0x0adb
 
const uint16_t librealsense::ds::RS_USB2_PID = 0x0ad6
 
const uint16_t librealsense::ds::RS_USB2_RECOVERY_PID = 0x0adc
 
constexpr size_t librealsense::ds::tm1_calib_model_size = sizeof(tm1_calib_model)
 
constexpr size_t librealsense::ds::tm1_calibration_table_size = sizeof(tm1_calibration_table)
 
constexpr size_t librealsense::ds::tm1_eeprom_size = sizeof(tm1_eeprom)
 
constexpr size_t librealsense::ds::tm1_module_info_size = sizeof(tm1_module_info)
 
constexpr size_t librealsense::ds::tm1_serial_num_table_size = sizeof(tm1_serial_num_table)
 

Macro Definition Documentation

#define ENUM2STR (   x)    case(x):return VAR_ARG_STR(x);

Definition at line 220 of file ds5-private.h.

#define LOG_DEBUG_THERMAL_LOOP (   ...)

Definition at line 18 of file ds5-private.h.

#define TOSTRING (   arg)    #arg

Definition at line 218 of file ds5-private.h.

#define VAR_ARG_STR (   x)    TOSTRING(x)

Definition at line 219 of file ds5-private.h.



librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:24