14#ifndef DFU_TARGET_FULL_MODEM_H__
15#define DFU_TARGET_FULL_MODEM_H__
19#include <zephyr/device.h>
28 const struct device *
dev;
int dfu_target_full_modem_schedule_update(int img_num)
Schedule update of the image.
int dfu_target_full_modem_fdev_get(struct dfu_target_fmfu_fdev *const fdev)
Get the configured flash device information.
int dfu_target_full_modem_reset(void)
Release resources and erase the download area.
bool dfu_target_full_modem_identify(const void *const buf)
See if data in buf indicates a full modem update.
int dfu_target_full_modem_cfg(const struct dfu_target_full_modem_params *params)
Configure resources required by dfu_target_full_modem.
int dfu_target_full_modem_init(size_t file_size, int img_num, dfu_target_callback_t callback)
Initialize dfu target, perform steps necessary to receive firmware.
int dfu_target_full_modem_offset_get(size_t *offset)
Get offset of firmware.
int dfu_target_full_modem_done(bool successful)
Release resources and finalize firmware upgrade if successful.
int dfu_target_full_modem_write(const void *const buf, size_t len)
Write firmware data.
void(* dfu_target_callback_t)(enum dfu_target_evt_id evt_id)
Definition dfu_target.h:58
size_t size
Definition dfu_target_full_modem.h:37
const struct device * dev
Definition dfu_target_full_modem.h:28
off_t offset
Definition dfu_target_full_modem.h:31
Definition dfu_target_full_modem.h:26
uint8_t * buf
Definition dfu_target_full_modem.h:42
struct dfu_target_fmfu_fdev * dev
Definition dfu_target_full_modem.h:50
size_t len
Definition dfu_target_full_modem.h:45
Definition dfu_target_full_modem.h:40