nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
dfu_target_modem_delta.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
14#ifndef DFU_TARGET_MODEM_H__
15#define DFU_TARGET_MODEM_H__
16
17#include <zephyr/types.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
28bool dfu_target_modem_delta_identify(const void *const buf);
29
40int dfu_target_modem_delta_init(size_t file_size, int img_num,
41 dfu_target_callback_t callback);
42
51
60int dfu_target_modem_delta_write(const void *const buf, size_t len);
61
69int dfu_target_modem_delta_done(bool successful);
70
83
92
93#ifdef __cplusplus
94}
95#endif
96
97#endif /* DFU_TARGET_MODEM_H__ */
98
int dfu_target_modem_delta_write(const void *const buf, size_t len)
Write firmware data.
int dfu_target_modem_delta_reset(void)
Release resources and erase the download area.
int dfu_target_modem_delta_done(bool successful)
Deinitialize resources and finalize firmware upgrade if successful.
int dfu_target_modem_delta_offset_get(size_t *offset)
Get offset of firmware.
bool dfu_target_modem_delta_identify(const void *const buf)
See if data in buf indicates modem delta upgrade.
int dfu_target_modem_delta_schedule_update(int img_num)
Schedule update of the image.
int dfu_target_modem_delta_init(size_t file_size, int img_num, dfu_target_callback_t callback)
Initialize dfu target, perform steps necessary to receive firmware.
void(* dfu_target_callback_t)(enum dfu_target_evt_id evt_id)
Definition dfu_target.h:58