nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
dfu_target_custom.h File Reference
#include <dfu/dfu_target.h>
#include <stddef.h>

Go to the source code of this file.

Functions

bool dfu_target_custom_identify (const void *const buf)
 Check if the provided buffer contains a custom firmware image.
 
int dfu_target_custom_init (size_t file_size, int img_num, dfu_target_callback_t cb)
 Initialize the custom DFU target.
 
int dfu_target_custom_offset_get (size_t *offset)
 Get the current write offset for the custom DFU target.
 
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_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.