18#ifndef DFU_TARGET_CUSTOM_H__
19#define DFU_TARGET_CUSTOM_H__
int dfu_target_custom_schedule_update(int img_num)
Schedule an update for the custom DFU target.
int dfu_target_custom_reset(void)
Release resources and erase the download area.
int dfu_target_custom_offset_get(size_t *offset)
Get the current write offset for the custom DFU target.
bool dfu_target_custom_identify(const void *const buf)
Check if the provided buffer contains a custom firmware image.
int dfu_target_custom_write(const void *const buf, size_t len)
Write data to the custom DFU target.
int dfu_target_custom_done(bool successful)
Release resources and finalize the custom DFU process if successful.
int dfu_target_custom_init(size_t file_size, int img_num, dfu_target_callback_t cb)
Initialize the custom DFU target.
void(* dfu_target_callback_t)(enum dfu_target_evt_id evt_id)
Definition dfu_target.h:58