Request a handle to access a logical camera unit.
camera_error_t camera_open(camera_unit_t unit, uint32_t mode, camera_handle_t *handle)
The logical camera unit to open.
The access mode of the camera, which is comprised of the CAMERA_MODE_xxx flags ORed together.
A pointer to the returned camera handle if access is granted.
If the camera is available, a handle for exclusive access to the camera unit is returned. You must pass in a camera_handle_t to store the handle. You must also have access permissions to use the camera.
CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.