14#ifndef NRF_MODEM_DELTA_DFU_H__
15#define NRF_MODEM_DELTA_DFU_H__
28#define NRF_MODEM_DELTA_DFU_NO_ERROR 0
29#define NRF_MODEM_DELTA_DFU_RECEIVER_OUT_OF_MEMORY 1
30#define NRF_MODEM_DELTA_DFU_RECEIVER_BLOCK_TOO_LARGE 2
31#define NRF_MODEM_DELTA_DFU_INVALID_HEADER_DATA 3
32#define NRF_MODEM_DELTA_DFU_ERROR_INTERNAL_00 4
33#define NRF_MODEM_DELTA_DFU_INVALID_DATA 5
34#define NRF_MODEM_DELTA_DFU_ERROR_INTERNAL_01 6
35#define NRF_MODEM_DELTA_DFU_ERROR_INTERNAL_02 7
36#define NRF_MODEM_DELTA_DFU_ERROR_INTERNAL_03 8
37#define NRF_MODEM_DELTA_DFU_INVALID_UUID 9
38#define NRF_MODEM_DELTA_DFU_INVALID_ADDRESS 10
39#define NRF_MODEM_DELTA_DFU_AREA_NOT_BLANK 11
40#define NRF_MODEM_DELTA_DFU_WRITE_ERROR 12
41#define NRF_MODEM_DELTA_DFU_ERASE_ERROR 13
42#define NRF_MODEM_DELTA_DFU_INVALID_FILE_OFFSET 14
43#define NRF_MODEM_DELTA_DFU_PROGRESS_LOG_INVALID 15
44#define NRF_MODEM_DELTA_DFU_INVALID_RESUME_ATTEMPT 16
45#define NRF_MODEM_DELTA_DFU_ERASE_PENDING 17
46#define NRF_MODEM_DELTA_DFU_OPERATION_NOT_ALLOWED 18
47#define NRF_MODEM_DELTA_DFU_INCOMPLETE_DATA 19
48#define NRF_MODEM_DELTA_DFU_INTERRUPTED_WRITE 20
49#define NRF_MODEM_DELTA_DFU_INVALID_OPERATION 21
50#define NRF_MODEM_DELTA_DFU_ERROR_INTERNAL_04 22
51#define NRF_MODEM_DELTA_DFU_NOT_ALLOWED_POFWARN_ON 23
56#define NRF_MODEM_DELTA_DFU_UUID_LEN 36
70#define NRF_MODEM_DELTA_DFU_OFFSET_DIRTY 2621440
int nrf_modem_delta_dfu_uuid(struct nrf_modem_delta_dfu_uuid *modem_uuid)
Retrieve the modem firmware UUID.
int nrf_modem_delta_dfu_write_done(void)
Pause receiving a modem firmware update and release resources.
int nrf_modem_delta_dfu_offset(size_t *off)
Retrieve the offset of the firmware image in the modem DFU area.
int nrf_modem_delta_dfu_erase(void)
Erase the modem DFU area.
int nrf_modem_delta_dfu_write_init(void)
Ready the modem to receive a firmware update.
int nrf_modem_delta_dfu_update(void)
Schedule execution of firmware update.
int nrf_modem_delta_dfu_area(size_t *size)
Retrieve the size of the modem DFU area.
int nrf_modem_delta_dfu_write(const void *src, size_t len)
Write bytes from a delta patch to the modem DFU area.
int nrf_modem_delta_dfu_rollback(void)
Schedule a rollback to the previous firmware.
#define NRF_MODEM_DELTA_DFU_UUID_LEN
Modem UUID length.
Definition nrf_modem_delta_dfu.h:56
uint8_t data[36]
Definition nrf_modem_delta_dfu.h:60
Modem UUID.
Definition nrf_modem_delta_dfu.h:59