Enum anjay_fw_update_initial_result_t

Enum Documentation

enum anjay_fw_update_initial_result_t

Possible values that control the State and Update Result resources at the time of initialization of the Firmware Update object.

Values:

enumerator ANJAY_FW_UPDATE_INITIAL_UPDATING

Corresponds to the “Updating” State and “Initial” Result. Shall be used when the device rebooted as part of the update process, but the firmware image is not fully applied yet. The application MUST use anjay_fw_update_set_result to set the result to success or failure after the update process is complete.

enumerator ANJAY_FW_UPDATE_INITIAL_DOWNLOADED

Corresponds to the “Downloaded” State and “Initial” Result. Shall be used when the device unexpectedly rebooted when the firmware image has already been downloaded into some non-volatile memory.

enumerator ANJAY_FW_UPDATE_INITIAL_DOWNLOADING

Corresponds to the “Downloading” State and “Initial” Result. Shall be used when the device can determine that it unexpectedly rebooted during the download of the firmware image, and it has all the information necessary to resume the download. Such information shall then be passed via other fields in the anjay_fw_update_initial_state_t structure.

enumerator ANJAY_FW_UPDATE_INITIAL_NEUTRAL

Corresponds to the “Idle” State and “Initial” Result. Shall be used when the library is initializing normally, not after a firmware update attempt.

enumerator ANJAY_FW_UPDATE_INITIAL_SUCCESS

Corresponds to the “Idle” State and “Firmware updated successfully” Result. Shall be used when the device has just rebooted after successfully updating the firmware.

enumerator ANJAY_FW_UPDATE_INITIAL_INTEGRITY_FAILURE

Corresponds to the “Idle” State and “Integrity check failure” Result. Shall be used when the device has just rebooted after an unsuccessful firmware update attempt that failed due to failed integrity check of the firmware package.

enumerator ANJAY_FW_UPDATE_INITIAL_FAILED

Corresponds to the “Idle” State “Firmware update failed” Result. Shall be used when the device has just rebooted after a firmware upgrade attempt that was unsuccessful for reason any other than integrity check.