[][src]Function realsense_sys::rs2_config_enable_device

pub unsafe extern "C" fn rs2_config_enable_device(
    config: *mut rs2_config,
    serial: *const c_char,
    error: *mut *mut rs2_error
)

Select a specific device explicitly by its serial number, to be used by the pipeline. The conditions and behavior of this method are similar to those of \c enable_stream(). This method is required if the application needs to set device or sensor settings prior to pipeline streaming, to enforce the pipeline to use the configured device.

\param[in] config A pointer to an instance of a config \param[in] serial device serial number, as returned by RS2_CAMERA_INFO_SERIAL_NUMBER \param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored