Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
|
Functions | |
int | infuse_dfu_image_erase (const struct flash_area *fa, size_t image_len, bool mcuboot_trailer) |
Erase a flash area to be ready for a new image. | |
int | infuse_dfu_nrf91_modem_delta_prepare (void) |
Prepare the nRF91 modem for a delta image upgrade. | |
int | infuse_dfu_nrf91_modem_delta_finish (void) |
Finalise a nRF91 modem delta image upgrade. | |
int infuse_dfu_image_erase | ( | const struct flash_area * | fa, |
size_t | image_len, | ||
bool | mcuboot_trailer ) |
#include <infuse/dfu/helpers.h>
Erase a flash area to be ready for a new image.
fa | Flash area to erase (must be already opened) |
image_len | Length of image |
mcuboot_trailer | Erase space for MCUBoot trailer |
0 | On success |
-errno | Error code from flash_area_erase on failure |
int infuse_dfu_nrf91_modem_delta_finish | ( | void | ) |
#include <infuse/dfu/helpers.h>
Finalise a nRF91 modem delta image upgrade.
0 | On success |
-errno | Error code from nrf_modem_delta_dfu_write_done or nrf_modem_delta_dfu_update |
int infuse_dfu_nrf91_modem_delta_prepare | ( | void | ) |
#include <infuse/dfu/helpers.h>
Prepare the nRF91 modem for a delta image upgrade.
0 | On success |
-errno | Error code from nrf_modem_delta_dfu_offset, nrf_modem_delta_dfu_erase or nrf_modem_delta_dfu_write_init |