[−][src]Function realsense_sys::rs2_update_firmware_unsigned_cpp
pub unsafe extern "C" fn rs2_update_firmware_unsigned_cpp(
device: *const rs2_device,
fw_image: *const c_void,
fw_image_size: c_int,
callback: *mut rs2_update_progress_callback,
update_mode: c_int,
error: *mut *mut rs2_error
)
Update device to the provided firmware by writing raw data directly to the flash, this command can be executed only on unlocked camera. The device must be extendable to RS2_EXTENSION_UPDATABLE. This call is executed on the caller's thread and it supports progress notifications via the optional callback. \param[in] device Device to update \param[in] fw_image Firmware image buffer \param[in] fw_image_size Firmware image buffer size \param[in] callback Optional callback for update progress notifications, the progress value is normailzed to 1 \param[in] update_mode Select one of RS2_UNSIGNED_UPDATE_MODE, WARNING!!! setting to any option other than RS2_UNSIGNED_UPDATE_MODE_UPDATE will make this call unsafe and might damage the camera \param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored