nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
dfu_target_stream.h File Reference
#include <stddef.h>
#include <zephyr/storage/stream_flash.h>

Go to the source code of this file.

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.