Classes | Enumerations | Functions | Variables
rsimpl::ds Namespace Reference

Classes

struct  ae_params
 
struct  CommandResponsePacket
 
struct  dc_params
 
struct  dinghy
 
struct  discovery
 
struct  disp_mode
 
struct  ds_calibration
 
class  ds_device
 
struct  ds_head_content
 The struct is aligned with the data layout in device. More...
 
struct  ds_info
 
struct  range
 
struct  rate_value
 
struct  temperature
 
class  time_pad
 

Enumerations

enum  control {
  control::command_response = 1, control::fisheye_xu_strobe = 1, control::iffley = 2, control::fisheye_xu_ext_trig = 2,
  control::stream_intent = 3, control::fisheye_exposure = 3, control::depth_units = 4, control::min_max = 5,
  control::disparity = 6, control::rectification = 7, control::emitter = 8, control::temperature = 9,
  control::depth_params = 10, control::last_error = 12, control::embedded_count = 13, control::lr_exposure = 14,
  control::lr_autoexposure_parameters = 15, control::sw_reset = 16, control::lr_gain = 17, control::lr_exposure_mode = 18,
  control::disparity_shift = 19, control::status = 20, control::lr_exposure_discovery = 21, control::lr_gain_discovery = 22,
  control::hw_timestamp = 23
}
 
enum  ds_emitter_type : uint32_t {
  DS_EMITTER_NONE = 0, DS_EMITTER_LD2 = 1, DS_EMITTER_LD3 = 2, DS_EMITTER_LD4_1 = 3,
  DS_EMITTER_COUNT = 4
}
 
enum  ds_lens_coating_type : uint32_t {
  DS_LENS_COATING_UNKNOWN = 0, DS_LENS_COATING_IR_CUT = 1, DS_LENS_COATING_ALL_PASS = 2, DS_LENS_COATING_IR_PASS = 3,
  DS_LENS_COATING_IR_PASS_859_43 = 4, DS_LENS_COATING_COUNT = 5
}
 
enum  ds_lens_type : uint32_t {
  DS_LENS_UNKNOWN = 0, DS_LENS_DSL103 = 1, DS_LENS_DSL821C = 2, DS_LENS_DSL202A = 3,
  DS_LENS_DSL203 = 4, DS_LENS_PENTAX2514 = 5, DS_LENS_DSL924A = 6, DS_LENS_AZW58 = 7,
  DS_LENS_Largan9386 = 8, DS_LENS_DS6100 = 9, DS_LENS_DS6177 = 10, DS_LENS_DS6237 = 11,
  DS_LENS_DS6233 = 12, DS_LENS_DS917 = 13, DS_LENS_AEOT_1LS0901L = 14, DS_LENS_COUNT = 15
}
 
enum  ds_oem_id : uint32_t { DS_OEM_NONE = 0 }
 
enum  ds_prq_type : uint8_t { DS_PRQ_READY = 1 }
 
enum  subdevices { SUB_DEVICE_INFRARED = 0, SUB_DEVICE_DEPTH = 1, SUB_DEVICE_COLOR = 2, SUB_DEVICE_FISHEYE = 3 }
 

Functions

void bulk_usb_command (uvc::device &device, std::timed_mutex &mutex, unsigned char out_ep, uint8_t *out, size_t outSize, uint32_t &op, unsigned char in_ep, uint8_t *in, size_t &inSize, int timeout)
 
void force_firmware_reset (uvc::device &device)
 
dc_params get_depth_params (const uvc::device &device)
 
uint32_t get_depth_units (const uvc::device &device)
 
disp_mode get_disparity_mode (const uvc::device &device)
 
uint32_t get_disparity_shift (const uvc::device &device)
 
bool get_emitter_state (const uvc::device &device, bool is_streaming, bool is_depth_enabled)
 
uint8_t get_last_error (const uvc::device &device)
 
ae_params get_lr_auto_exposure_params (const uvc::device &device, std::vector< supported_option > ae_vec)
 
rate_value get_lr_exposure (const uvc::device &device)
 
discovery get_lr_exposure_discovery (const uvc::device &device)
 
uint8_t get_lr_exposure_mode (const uvc::device &device)
 
rate_value get_lr_gain (const uvc::device &device)
 
discovery get_lr_gain_discovery (const uvc::device &device)
 
range get_min_max_depth (const uvc::device &device)
 
void get_register_value (uvc::device &device, uint32_t reg, uint32_t &value)
 
void get_stream_status (const uvc::device &device, uint32_t &status)
 
void get_stream_status (const uvc::device &device, int &status)
 
temperature get_temperature (const uvc::device &device)
 
std::ostream & operator<< (std::ostream &out, ds_lens_type type)
 
std::ostream & operator<< (std::ostream &out, ds_lens_coating_type type)
 
std::ostream & operator<< (std::ostream &out, ds_emitter_type type)
 
std::ostream & operator<< (std::ostream &out, ds_oem_id type)
 
std::ostream & operator<< (std::ostream &out, ds_prq_type type)
 
bool read_admin_sector (uvc::device &dev, unsigned char data[SPI_FLASH_SECTOR_SIZE_IN_BYTES], int whichAdminSector)
 
void read_arbitrary_chunk (uvc::device &dev, uint32_t address, void *dataIn, int lengthInBytesIn)
 
ds_calibration read_calibration_and_rectification_parameters (const uint8_t(&flash_data_buffer)[SPI_FLASH_SECTOR_SIZE_IN_BYTES])
 
ds_head_content read_camera_head_contents (const uint8_t(&flash_data_buffer)[SPI_FLASH_SECTOR_SIZE_IN_BYTES], uint32_t &serial_number)
 
ds_info read_camera_info (uvc::device &device)
 
bool read_device_pages (uvc::device &dev, uint32_t address, unsigned char *buffer, uint32_t nPages)
 
std::string read_firmware_version (uvc::device &device)
 
std::string read_isp_firmware_version (uvc::device &device)
 
CommandResponsePacket send_command_and_receive_response (uvc::device &device, const CommandResponsePacket &command)
 
void set_depth_params (uvc::device &device, dc_params params)
 
void set_depth_units (uvc::device &device, uint32_t units)
 
void set_disparity_mode (uvc::device &device, disp_mode mode)
 
void set_disparity_shift (uvc::device &device, uint32_t shift)
 
void set_emitter_state (uvc::device &device, bool state)
 
void set_lr_auto_exposure_params (uvc::device &device, ae_params params)
 
void set_lr_exposure (uvc::device &device, rate_value exposure)
 
void set_lr_exposure_discovery (uvc::device &device, discovery disc)
 
void set_lr_exposure_mode (uvc::device &device, uint8_t mode)
 
void set_lr_gain (uvc::device &device, rate_value gain)
 
void set_lr_gain_discovery (uvc::device &device, discovery disc)
 
void set_min_max_depth (uvc::device &device, range min_max)
 
void set_register_value (uvc::device &device, uint32_t reg, uint32_t value)
 
void set_stream_intent (uvc::device &device, uint8_t &intent)
 
void set_temperature (uvc::device &device, temperature temp)
 
std::string time_to_string (double val)
 
void xu_read (const uvc::device &device, uvc::extension_unit xu, control xu_ctrl, void *buffer, uint32_t length)
 
template<class T >
xu_read (const uvc::device &dev, uvc::extension_unit xu, control ctrl)
 
void xu_write (uvc::device &device, uvc::extension_unit xu, control xu_ctrl, void *buffer, uint32_t length)
 
template<class T >
void xu_write (uvc::device &dev, uvc::extension_unit xu, control ctrl, const T &value)
 

Variables

const uvc::extension_unit lr_xu = {0, 2, 1, {0x18682d34, 0xdd2c, 0x4073, {0xad, 0x23, 0x72, 0x14, 0x73, 0x9a, 0x07, 0x4c}}}
 
const int STATUS_BIT_LR_STREAMING = 1 << 1
 
const int STATUS_BIT_WEB_STREAMING = 1 << 2
 
const int STATUS_BIT_Z_STREAMING = 1 << 0
 

Enumeration Type Documentation

enum rsimpl::ds::control
strong
Enumerator
command_response 
fisheye_xu_strobe 
iffley 
fisheye_xu_ext_trig 
stream_intent 
fisheye_exposure 
depth_units 
min_max 
disparity 
rectification 
emitter 
temperature 
depth_params 
last_error 
embedded_count 
lr_exposure 
lr_autoexposure_parameters 
sw_reset 
lr_gain 
lr_exposure_mode 
disparity_shift 
status 
lr_exposure_discovery 
lr_gain_discovery 
hw_timestamp 

Definition at line 259 of file ds-private.h.

enum rsimpl::ds::ds_emitter_type : uint32_t
Enumerator
DS_EMITTER_NONE 
DS_EMITTER_LD2 

Laser Driver 2, NO PWM Controls.

DS_EMITTER_LD3 

Laser Driver 3.

DS_EMITTER_LD4_1 

Laser Driver 4.1.

DS_EMITTER_COUNT 

Just count.

Definition at line 99 of file ds-private.h.

Enumerator
DS_LENS_COATING_UNKNOWN 
DS_LENS_COATING_IR_CUT 

IR coating DS4: Innowave 670 cut off.

DS_LENS_COATING_ALL_PASS 

No IR coating.

DS_LENS_COATING_IR_PASS 

Visible-light block / IR pass: center 860, width 25nm.

DS_LENS_COATING_IR_PASS_859_43 

Visible-light block / IR pass center 859, width 43nm.

DS_LENS_COATING_COUNT 

Definition at line 75 of file ds-private.h.

enum rsimpl::ds::ds_lens_type : uint32_t
Enumerator
DS_LENS_UNKNOWN 

Lens either unknown or not needing special treatment.

DS_LENS_DSL103 

Sunex DSL103: Internal standard.

DS_LENS_DSL821C 

Sunex DSL 821C.

DS_LENS_DSL202A 

Sunex DSL 202A.

DS_LENS_DSL203 

Sunex DSL 203.

DS_LENS_PENTAX2514 

Pentax cmount lens 25mm.

DS_LENS_DSL924A 

Sunex DSL 924a.

DS_LENS_AZW58 

58 degree lenses on the AZureWave boards (DS-526)

DS_LENS_Largan9386 

50 HFOV 38 VFOV (60DFOV): CTM2/6 Module L&R

DS_LENS_DS6100 

Newmax 67.8 x 41.4 degs in 1080p.

DS_LENS_DS6177 

Newmax 71.7 x 44.2 degs in 1080p.

DS_LENS_DS6237 

Newmax 58.9 x 45.9 degs in VGA.

DS_LENS_DS6233 

IR lens.

DS_LENS_DS917 

RGB lens.

DS_LENS_AEOT_1LS0901L 
DS_LENS_COUNT 

AEOT lens.

Just count

Definition at line 33 of file ds-private.h.

enum rsimpl::ds::ds_oem_id : uint32_t
Enumerator
DS_OEM_NONE 

Definition at line 121 of file ds-private.h.

enum rsimpl::ds::ds_prq_type : uint8_t
Enumerator
DS_PRQ_READY 

Definition at line 136 of file ds-private.h.

Enumerator
SUB_DEVICE_INFRARED 
SUB_DEVICE_DEPTH 
SUB_DEVICE_COLOR 
SUB_DEVICE_FISHEYE 

Definition at line 20 of file ds-device.h.

Function Documentation

void rsimpl::ds::bulk_usb_command ( uvc::device &  device,
std::timed_mutex &  mutex,
unsigned char  out_ep,
uint8_t *  out,
size_t  outSize,
uint32_t &  op,
unsigned char  in_ep,
uint8_t *  in,
size_t &  inSize,
int  timeout 
)

Definition at line 65 of file ds-private.cpp.

void rsimpl::ds::force_firmware_reset ( uvc::device &  device)

Definition at line 374 of file ds-private.cpp.

dc_params rsimpl::ds::get_depth_params ( const uvc::device &  device)
inline

Definition at line 369 of file ds-private.h.

uint32_t rsimpl::ds::get_depth_units ( const uvc::device &  device)
inline

Definition at line 365 of file ds-private.h.

disp_mode rsimpl::ds::get_disparity_mode ( const uvc::device &  device)
inline

Definition at line 367 of file ds-private.h.

uint32_t rsimpl::ds::get_disparity_shift ( const uvc::device &  device)
inline

Definition at line 402 of file ds-private.h.

bool rsimpl::ds::get_emitter_state ( const uvc::device &  device,
bool  is_streaming,
bool  is_depth_enabled 
)

Definition at line 384 of file ds-private.cpp.

uint8_t rsimpl::ds::get_last_error ( const uvc::device &  device)
inline

Definition at line 370 of file ds-private.h.

ae_params rsimpl::ds::get_lr_auto_exposure_params ( const uvc::device &  device,
std::vector< supported_option ae_vec 
)
inline

Definition at line 372 of file ds-private.h.

rate_value rsimpl::ds::get_lr_exposure ( const uvc::device &  device)
inline

Definition at line 371 of file ds-private.h.

discovery rsimpl::ds::get_lr_exposure_discovery ( const uvc::device &  device)
inline

Definition at line 403 of file ds-private.h.

uint8_t rsimpl::ds::get_lr_exposure_mode ( const uvc::device &  device)
inline

Definition at line 401 of file ds-private.h.

rate_value rsimpl::ds::get_lr_gain ( const uvc::device &  device)
inline

Definition at line 400 of file ds-private.h.

discovery rsimpl::ds::get_lr_gain_discovery ( const uvc::device &  device)
inline

Definition at line 404 of file ds-private.h.

range rsimpl::ds::get_min_max_depth ( const uvc::device &  device)
inline

Definition at line 366 of file ds-private.h.

void rsimpl::ds::get_register_value ( uvc::device &  device,
uint32_t  reg,
uint32_t &  value 
)

Definition at line 397 of file ds-private.cpp.

void rsimpl::ds::get_stream_status ( const uvc::device &  device,
uint32_t &  status 
)
void rsimpl::ds::get_stream_status ( const uvc::device &  device,
int status 
)

Definition at line 367 of file ds-private.cpp.

temperature rsimpl::ds::get_temperature ( const uvc::device &  device)
inline

Definition at line 368 of file ds-private.h.

std::ostream& rsimpl::ds::operator<< ( std::ostream &  out,
ds_lens_type  type 
)
inline

Definition at line 54 of file ds-private.h.

std::ostream& rsimpl::ds::operator<< ( std::ostream &  out,
ds_lens_coating_type  type 
)
inline

Definition at line 86 of file ds-private.h.

std::ostream& rsimpl::ds::operator<< ( std::ostream &  out,
ds_emitter_type  type 
)
inline

Definition at line 108 of file ds-private.h.

std::ostream& rsimpl::ds::operator<< ( std::ostream &  out,
ds_oem_id  type 
)
inline

Definition at line 126 of file ds-private.h.

std::ostream& rsimpl::ds::operator<< ( std::ostream &  out,
ds_prq_type  type 
)
inline

Definition at line 141 of file ds-private.h.

bool rsimpl::ds::read_admin_sector ( uvc::device &  dev,
unsigned char  data[SPI_FLASH_SECTOR_SIZE_IN_BYTES],
int  whichAdminSector 
)

Definition at line 158 of file ds-private.cpp.

void rsimpl::ds::read_arbitrary_chunk ( uvc::device &  dev,
uint32_t  address,
void dataIn,
int  lengthInBytesIn 
)

Definition at line 119 of file ds-private.cpp.

ds_calibration rsimpl::ds::read_calibration_and_rectification_parameters ( const uint8_t(&)  flash_data_buffer[SPI_FLASH_SECTOR_SIZE_IN_BYTES])

< Max number right cameras supported (e.g. one or two, two would support a multi-baseline unit)

< Max number native resolutions the third camera can have (e.g. 1920x1080 and 640x480)

< Max number rectified LR resolution modes the structure supports (e.g. 640x480, 492x372 and 332x252)

< Max number rectified Third resolution modes the structure supports (e.g. 1920x1080, 1280x720, 640x480 and 320x240)

< Number of right cameras < MAX_INTRIN_RIGHT_V0

< Number of native resolutions of third camera < MAX_INTRIN_THIRD_V0

< Number of rectified LR resolution modes < MAX_MODES_LR_V0

< Number of rectified Third resolution modes < MAX_MODES_THIRD_V0

Definition at line 173 of file ds-private.cpp.

ds_head_content rsimpl::ds::read_camera_head_contents ( const uint8_t(&)  flash_data_buffer[SPI_FLASH_SECTOR_SIZE_IN_BYTES],
uint32_t &  serial_number 
)

Definition at line 307 of file ds-private.cpp.

ds_info rsimpl::ds::read_camera_info ( uvc::device &  device)

Definition at line 332 of file ds-private.cpp.

bool rsimpl::ds::read_device_pages ( uvc::device &  dev,
uint32_t  address,
unsigned char *  buffer,
uint32_t  nPages 
)

Definition at line 94 of file ds-private.cpp.

std::string rsimpl::ds::read_firmware_version ( uvc::device &  device)

Definition at line 350 of file ds-private.cpp.

std::string rsimpl::ds::read_isp_firmware_version ( uvc::device &  device)

Definition at line 356 of file ds-private.cpp.

CommandResponsePacket rsimpl::ds::send_command_and_receive_response ( uvc::device &  device,
const CommandResponsePacket command 
)

Definition at line 57 of file ds-private.cpp.

void rsimpl::ds::set_depth_params ( uvc::device &  device,
dc_params  params 
)
inline

Definition at line 410 of file ds-private.h.

void rsimpl::ds::set_depth_units ( uvc::device &  device,
uint32_t  units 
)
inline

Definition at line 406 of file ds-private.h.

void rsimpl::ds::set_disparity_mode ( uvc::device &  device,
disp_mode  mode 
)
inline

Definition at line 408 of file ds-private.h.

void rsimpl::ds::set_disparity_shift ( uvc::device &  device,
uint32_t  shift 
)
inline

Definition at line 416 of file ds-private.h.

void rsimpl::ds::set_emitter_state ( uvc::device &  device,
bool  state 
)

Definition at line 392 of file ds-private.cpp.

void rsimpl::ds::set_lr_auto_exposure_params ( uvc::device &  device,
ae_params  params 
)
inline

Definition at line 411 of file ds-private.h.

void rsimpl::ds::set_lr_exposure ( uvc::device &  device,
rate_value  exposure 
)
inline

Definition at line 419 of file ds-private.h.

void rsimpl::ds::set_lr_exposure_discovery ( uvc::device &  device,
discovery  disc 
)
inline

Definition at line 417 of file ds-private.h.

void rsimpl::ds::set_lr_exposure_mode ( uvc::device &  device,
uint8_t  mode 
)
inline

Definition at line 415 of file ds-private.h.

void rsimpl::ds::set_lr_gain ( uvc::device &  device,
rate_value  gain 
)
inline

Definition at line 420 of file ds-private.h.

void rsimpl::ds::set_lr_gain_discovery ( uvc::device &  device,
discovery  disc 
)
inline

Definition at line 418 of file ds-private.h.

void rsimpl::ds::set_min_max_depth ( uvc::device &  device,
range  min_max 
)
inline

Definition at line 407 of file ds-private.h.

void rsimpl::ds::set_register_value ( uvc::device &  device,
uint32_t  reg,
uint32_t  value 
)

Definition at line 401 of file ds-private.cpp.

void rsimpl::ds::set_stream_intent ( uvc::device &  device,
uint8_t &  intent 
)

Definition at line 362 of file ds-private.cpp.

void rsimpl::ds::set_temperature ( uvc::device &  device,
temperature  temp 
)
inline

Definition at line 409 of file ds-private.h.

std::string rsimpl::ds::time_to_string ( double  val)
inline

Definition at line 151 of file ds-private.h.

void rsimpl::ds::xu_read ( const uvc::device &  device,
uvc::extension_unit  xu,
control  xu_ctrl,
void buffer,
uint32_t  length 
)

Definition at line 36 of file ds-private.cpp.

template<class T >
T rsimpl::ds::xu_read ( const uvc::device &  dev,
uvc::extension_unit  xu,
control  ctrl 
)

Definition at line 291 of file ds-private.h.

void rsimpl::ds::xu_write ( uvc::device &  device,
uvc::extension_unit  xu,
control  xu_ctrl,
void buffer,
uint32_t  length 
)

Definition at line 41 of file ds-private.cpp.

template<class T >
void rsimpl::ds::xu_write ( uvc::device &  dev,
uvc::extension_unit  xu,
control  ctrl,
const T &  value 
)

Definition at line 292 of file ds-private.h.

Variable Documentation

const uvc::extension_unit rsimpl::ds::lr_xu = {0, 2, 1, {0x18682d34, 0xdd2c, 0x4073, {0xad, 0x23, 0x72, 0x14, 0x73, 0x9a, 0x07, 0x4c}}}

Definition at line 17 of file ds-private.h.

const int rsimpl::ds::STATUS_BIT_LR_STREAMING = 1 << 1

Definition at line 20 of file ds-private.h.

const int rsimpl::ds::STATUS_BIT_WEB_STREAMING = 1 << 2

Definition at line 21 of file ds-private.h.

const int rsimpl::ds::STATUS_BIT_Z_STREAMING = 1 << 0

Definition at line 19 of file ds-private.h.



librealsense
Author(s): Sergey Dorodnicov , Mark Horn , Reagan Lopez
autogenerated on Fri Mar 13 2020 03:16:19