#include <fota_component.h>
Data Fields | |
uint32_t | install_alignment |
bool | support_delta |
bool | need_reboot |
fota_candidate_iterate_handler_t | candidate_iterate_cb |
fota_component_verify_install_handler_t | component_verify_install_cb |
fota_component_curr_fw_read | curr_fw_read |
fota_component_curr_fw_get_digest | curr_fw_get_digest |
Component description information.
install_alignment | The preferred installer fragment size. Typically equal to the flash program size. |
support_delta | Specify whether the component supports differential (delta) update. |
need_reboot | Specify whether the component requires system reboot after the component installation has completed. Only true parameter is currently supported. |
candidate_iterate_cb | A callback function the FOTA client calls for installing the candidate. The FOTA client calls the callback iteratively with a firmware fragment buffer pointer as an argument. Note: For Linux systems, this iterative callback is replaced by fota_app_on_install_candidate(). |
component_verify_install_cb | A callback function to be executed after installation, verifying installation. |
curr_fw_read | Only required if ::support delta is set to true. A helper function for reading the currently installed firmware of the component. A callback to read the current firmware. |
curr_fw_get_digest | Only required if ::support delta is set to true. A helper function for calculating the SHA256 digest of the currently installed firmware of the component. A callback to get the current firmware digest. |