nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
Flash stream DFU Target

Provides an API for other DFU targets that need to write a large object to flash. More...

Data Structures

struct  dfu_target_stream_init
 DFU target stream initialization structure. More...
 

Functions

struct stream_flash_ctx * dfu_target_stream_get_stream (void)
 
int dfu_target_stream_init (const struct dfu_target_stream_init *init)
 Initialize dfu target.
 
int dfu_target_stream_offset_get (size_t *offset)
 Get the offset within the payload of the next byte to download.
 
int dfu_target_stream_write (const uint8_t *buf, size_t len)
 Write a chunk of firmware data.
 
int dfu_target_stream_done (bool successful)
 Release resources and finalize stream flash write if successful.
 
int dfu_target_stream_reset (void)
 Release resources and erase the download area.
 

Detailed Description

Provides an API for other DFU targets that need to write a large object to flash.