Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
|
#include <inttypes.h>
#include <zephyr/mgmt/mcumgr/grp/img_mgmt/img_mgmt.h>
#include <zephyr/mgmt/mcumgr/smp/smp_client.h>
Go to the source code of this file.
Data Structures | |
struct | mcumgr_image_list_flags |
Image list flags. More... | |
struct | mcumgr_image_data |
Image list data. More... | |
struct | mcumgr_image_state |
MCUmgr Image list response. More... | |
struct | mcumgr_image_upload |
MCUmgr Image upload response. More... | |
struct | img_gr_upload |
IMG mgmt client upload structure. More... | |
struct | img_mgmt_client |
IMG mgmt client object. More... | |
Functions | |
void | img_mgmt_client_init (struct img_mgmt_client *client, struct smp_client_object *smp_client, int image_list_size, struct mcumgr_image_data *image_list) |
Inilialize image group client. | |
int | img_mgmt_client_upload_init (struct img_mgmt_client *client, size_t image_size, uint32_t image_num, const char *image_hash) |
Initialize image upload. | |
int | img_mgmt_client_upload (struct img_mgmt_client *client, const uint8_t *data, size_t length, struct mcumgr_image_upload *res_buf) |
Upload part of image. | |
int | img_mgmt_client_state_write (struct img_mgmt_client *client, char *hash, bool confirm, struct mcumgr_image_state *res_buf) |
Write image state. | |
int | img_mgmt_client_state_read (struct img_mgmt_client *client, struct mcumgr_image_state *res_buf) |
Read image state. | |
int | img_mgmt_client_erase (struct img_mgmt_client *client, uint32_t slot) |
Erase selected Image Slot. | |