Function rs2_software_sensor_add_option

Function Documentation

void rs2_software_sensor_add_option(rs2_sensor *sensor, rs2_option option, float min, float max, float step, float def, int is_writable, rs2_error **error)

Add an option to sensor

Parameters:
  • sensor[in] the software sensor

  • option[in] the wanted option

  • min[in] the minimum value which will be accepted for this option

  • max[in] the maximum value which will be accepted for this option

  • step[in] the granularity of options which accept discrete values, or zero if the option accepts continuous values

  • def[in] the initial value of the option

  • is_writable[in] should the option be read-only or not

  • error[out] if non-null, receives any error that occurs during this call, otherwise, errors are ignored