nrfxlib API 2.7.99
Loading...
Searching...
No Matches
nrf_modem_delta_dfu.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
14#ifndef NRF_MODEM_DELTA_DFU_H__
15#define NRF_MODEM_DELTA_DFU_H__
16
17#include <stddef.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
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
57
61};
62
70#define NRF_MODEM_DELTA_DFU_OFFSET_DIRTY 2621440
71
86
105
122int nrf_modem_delta_dfu_area(size_t *size);
123
143
159int nrf_modem_delta_dfu_write(const void *src, size_t len);
160
172
196
215
234
235#ifdef __cplusplus
236}
237#endif
238
239#endif /* NRF_MODEM_DELTA_DFU_H__ */
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