Function rs2_create_device_from_sensor
Defined in File rs_sensor.h
Function Documentation
-
rs2_device *rs2_create_device_from_sensor(const rs2_sensor *sensor, rs2_error **error)
This is a helper function allowing the user to discover the device from one of its sensors
- Parameters:
sensor – [in] Pointer to a sensor
error – [out] if non-null, receives any error that occurs during this call, otherwise, errors are ignored
- Returns:
new device wrapper for the device of the sensor. Needs to be released by delete_device