Function rs2_update_firmware
Defined in File rs_device.h
Function Documentation
-
void rs2_update_firmware(const rs2_device *device, const void *fw_image, int fw_image_size, rs2_update_progress_callback_ptr callback, void *client_data, rs2_error **error)
Update device to the provided firmware, 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
error – [out] If non-null, receives any error that occurs during this call, otherwise, errors are ignored