Function rs2_update_firmware_unsigned_cpp
Defined in File rs_device.h
Function Documentation
-
void rs2_update_firmware_unsigned_cpp(const rs2_device *device, const void *fw_image, int fw_image_size, rs2_update_progress_callback *callback, int update_mode, rs2_error **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.
- Parameters:
device – [in] Device to update
fw_image – [in] Firmware image buffer
fw_image_size – [in] Firmware image buffer size
callback – [in] Optional callback for update progress notifications, the progress value is normailzed to 1
update_mode – [in] 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
error – [out] If non-null, receives any error that occurs during this call, otherwise, errors are ignored