nrfxlib API 0.1.0
Loading...
Searching...
No Matches
nrf_modem_delta_dfu.h File Reference
#include <stddef.h>

Go to the source code of this file.

Data Structures

struct  nrf_modem_delta_dfu_uuid
 Modem UUID. More...
 

Macros

#define NRF_MODEM_DELTA_DFU_NO_ERROR   0
 
#define NRF_MODEM_DELTA_DFU_RECEIVER_OUT_OF_MEMORY   1
 
#define NRF_MODEM_DELTA_DFU_RECEIVER_BLOCK_TOO_LARGE   2
 
#define NRF_MODEM_DELTA_DFU_INVALID_HEADER_DATA   3
 
#define NRF_MODEM_DELTA_DFU_ERROR_INTERNAL_00   4
 
#define NRF_MODEM_DELTA_DFU_INVALID_DATA   5
 
#define NRF_MODEM_DELTA_DFU_ERROR_INTERNAL_01   6
 
#define NRF_MODEM_DELTA_DFU_ERROR_INTERNAL_02   7
 
#define NRF_MODEM_DELTA_DFU_ERROR_INTERNAL_03   8
 
#define NRF_MODEM_DELTA_DFU_INVALID_UUID   9
 
#define NRF_MODEM_DELTA_DFU_INVALID_ADDRESS   10
 
#define NRF_MODEM_DELTA_DFU_AREA_NOT_BLANK   11
 
#define NRF_MODEM_DELTA_DFU_WRITE_ERROR   12
 
#define NRF_MODEM_DELTA_DFU_ERASE_ERROR   13
 
#define NRF_MODEM_DELTA_DFU_INVALID_FILE_OFFSET   14
 
#define NRF_MODEM_DELTA_DFU_PROGRESS_LOG_INVALID   15
 
#define NRF_MODEM_DELTA_DFU_INVALID_RESUME_ATTEMPT   16
 
#define NRF_MODEM_DELTA_DFU_ERASE_PENDING   17
 
#define NRF_MODEM_DELTA_DFU_OPERATION_NOT_ALLOWED   18
 
#define NRF_MODEM_DELTA_DFU_INCOMPLETE_DATA   19
 
#define NRF_MODEM_DELTA_DFU_INTERRUPTED_WRITE   20
 
#define NRF_MODEM_DELTA_DFU_INVALID_OPERATION   21
 
#define NRF_MODEM_DELTA_DFU_ERROR_INTERNAL_04   22
 
#define NRF_MODEM_DELTA_DFU_NOT_ALLOWED_POFWARN_ON   23
 
#define NRF_MODEM_DELTA_DFU_UUID_LEN   36
 Modem UUID length.
 
#define NRF_MODEM_DELTA_DFU_OFFSET_DIRTY   2621440
 Offset value that indicates that the scratch area is dirty.
 

Functions

int nrf_modem_delta_dfu_uuid (struct nrf_modem_delta_dfu_uuid *modem_uuid)
 Retrieve the modem firmware UUID.
 
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_area (size_t *size)
 Retrieve the size of 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_write (const void *src, size_t len)
 Write bytes from a delta patch to the modem DFU area.
 
int nrf_modem_delta_dfu_write_done (void)
 Pause receiving a modem firmware update and release resources.
 
int nrf_modem_delta_dfu_erase (void)
 Erase the modem DFU area.
 
int nrf_modem_delta_dfu_update (void)
 Schedule execution of firmware update.
 
int nrf_modem_delta_dfu_rollback (void)
 Schedule a rollback to the previous firmware.