Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
flash_img.h File Reference

Flash image header file. More...

Go to the source code of this file.

Data Structures

struct  flash_img_context
 
struct  flash_img_check
 Structure for verify flash region integrity. More...
 

Functions

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_init (struct flash_img_context *ctx)
 Initialize context needed for writing the image to the flash.
 
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_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.
 
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.
 
uint8_t flash_img_get_upload_slot (void)
 Get the flash area id for the image upload slot.
 

Detailed Description

Flash image header file.

This header file declares prototypes for the flash image APIs used for DFU.