Struct anj_dm_fw_update_handlers_t

Struct Documentation

struct anj_dm_fw_update_handlers_t

Collection of user‑provided callbacks used by the Firmware Update Object.

Warning

The user must ensure that this structure remains valid for the entire lifetime of anj_t object or until the Object is removed using anj_dm_remove_obj.

Public Members

anj_dm_fw_update_package_write_start_t *package_write_start_handler

Initiates Push‑mode download of the firmware package.

anj_dm_fw_update_package_write_t *package_write_handler

Writes a chunk of the firmware package during Push‑mode download.

anj_dm_fw_update_package_write_finish_t *package_write_finish_handler

Finalizes the Push‑mode download operation.

anj_dm_fw_update_uri_write_t *uri_write_handler

Handles Write to Package URI (starts Pull‑mode download).

anj_dm_fw_update_update_start_t *update_start_handler

Schedules execution of the actual firmware upgrade.

anj_dm_fw_update_get_name_t *get_name

Returns the name of the downloaded firmware package.

anj_dm_fw_update_get_version_t *get_version

Returns the version of the downloaded firmware package.

anj_dm_fw_update_reset_t *reset_handler

Aborts firmware download process and cleans up temporary resources.