Struct cl_firmware_update_callbacks_t
ClassList > cl_firmware_update_callbacks_t
Struct containing function pointers to callbacks, to be called throughout the update process. Used with cl_device_update_firmware_from_blob andcl_device_update_firmware_from_path .
#include <cl/cl_api.h>
Public Attributes
| Type | Name |
|---|---|
| void(* | report_progress Callback called when a chunk has been sent to the device. |
| void(* | start_finalizing Callback called when upload is done and device is validating firmware and writing it to its flash memory. |
| void(* | update_finished Callback called when the update is finished. |
| void(* | update_starting Callback called when update is starting. |
| void * | user_data User data, will be used as the first argument to all callback functions. |
Public Attributes Documentation
variable report_progress
Callback called when a chunk has been sent to the device.
void(* cl_firmware_update_callbacks_t::report_progress) (void *user_data, size_t transferred_bytes);
Parameters:
user_dataThe previously given user_datatransferred_bytesThe amount of bytes transferred up to this point
variable start_finalizing
Callback called when upload is done and device is validating firmware and writing it to its flash memory.
Parameters:
user_dataThe previously given user_data
variable update_finished
Callback called when the update is finished.
void(* cl_firmware_update_callbacks_t::update_finished) (void *user_data, enum cl_firmware_update_result_t update_result);
Parameters:
user_dataThe previously given user_dataupdate_resultA cl_firmware_update_result_t
variable update_starting
Callback called when update is starting.
void(* cl_firmware_update_callbacks_t::update_starting) (void *user_data, size_t total_transfer_bytes);
Parameters:
user_dataThe previously given user_datatotal_transfer_bytesThe total size of the firmware
variable user_data
User data, will be used as the first argument to all callback functions.
The documentation for this class was generated from the following file cl/cl_api.h