Function rs2_update_firmware_unsigned
Defined in File rs_device.h
Function Documentation
-
void rs2_update_firmware_unsigned(const rs2_device *device, const void *fw_image, int fw_image_size, rs2_update_progress_callback_ptr callback, void *client_data, 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
client_data – [in] Optional client data for the callback
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