15#ifndef ZEPHYR_INCLUDE_DFU_FLASH_IMG_H_ 
   16#define ZEPHYR_INCLUDE_DFU_FLASH_IMG_H_ 
   95                    size_t len, 
bool flush);
 
int flash_img_init_id(struct flash_img_context *ctx, uint8_t area_id)
Initialize context needed for writing the image to the flash.
 
int flash_img_check(struct flash_img_context *ctx, const struct flash_img_check *fic, uint8_t area_id)
Verify flash memory length bytes integrity from a flash area. The start point is indicated by an offs...
 
size_t flash_img_bytes_written(struct flash_img_context *ctx)
Read number of bytes of the image written to the flash.
 
int flash_img_init(struct flash_img_context *ctx)
Initialize context needed for writing the image to the flash.
 
int flash_img_buffered_write(struct flash_img_context *ctx, const uint8_t *data, size_t len, bool flush)
Process input buffers to be written to the image slot 1. flash memory in single blocks....
 
__UINT8_TYPE__ uint8_t
Definition: stdint.h:88
 
Public API for stream writes to flash.
 
Flash partition.
Definition: flash_map.h:57
 
Structure for verify flash region integrity.
Definition: flash_img.h:44
 
const uint8_t * match
Definition: flash_img.h:45
 
size_t clen
Definition: flash_img.h:46
 
Definition: flash_img.h:32
 
uint8_t buf[CONFIG_IMG_BLOCK_BUF_SIZE]
Definition: flash_img.h:33
 
struct stream_flash_ctx stream
Definition: flash_img.h:35
 
const struct flash_area * flash_area
Definition: flash_img.h:34
 
Structure for stream flash context.
Definition: stream_flash.h:54
 
static fdata_t data[2]
Definition: test_fifo_contexts.c:15