[][src]Function k4a_sys_temp::k4a_device_open

pub unsafe extern "C" fn k4a_device_open(
    index: u32,
    device_handle: *mut k4a_device_t
) -> k4a_result_t

Open an Azure Kinect device.

\param index The index of the device to open, starting with 0. Optionally pass in #K4A_DEVICE_DEFAULT.

\param device_handle Output parameter which on success will return a handle to the device.

\relates k4a_device_t

\return ::K4A_RESULT_SUCCEEDED if the device was opened successfully.

\remarks If successful, k4a_device_open() will return a device handle in the device_handle parameter. This handle grants exclusive access to the device and may be used in the other Azure Kinect API calls.

\remarks When done with the device, close the handle with k4a_device_close()

\xmlonly k4a.h (include k4a/k4a.h) k4a.lib k4a.dll \endxmlonly