Zephyr Project API
3.3.0
A Scalable Open Source RTOS
|
MCUboot public API for MCUboot control of image boot process. More...
Go to the source code of this file.
Data Structures | |
struct | mcuboot_img_sem_ver |
MCUboot image header representation for image version. More... | |
struct | mcuboot_img_header_v1 |
Model for the MCUboot image header as of version 1. More... | |
struct | mcuboot_img_header |
Model for the MCUBoot image header. More... | |
Macros | |
#define | BOOT_SWAP_TYPE_NONE 1 |
#define | BOOT_SWAP_TYPE_TEST 2 |
#define | BOOT_SWAP_TYPE_PERM 3 |
#define | BOOT_SWAP_TYPE_REVERT 4 |
#define | BOOT_SWAP_TYPE_FAIL 5 |
#define | BOOT_IMG_VER_STRLEN_MAX 25 /* 255.255.65535.4294967295\0 */ |
#define | BOOT_UPGRADE_TEST 0 |
#define | BOOT_UPGRADE_PERMANENT 1 |
Functions | |
int | boot_read_bank_header (uint8_t area_id, struct mcuboot_img_header *header, size_t header_size) |
Read the MCUboot image header information from an image bank. More... | |
bool | boot_is_img_confirmed (void) |
Check if the currently running image is confirmed as OK. More... | |
int | boot_write_img_confirmed (void) |
Marks the currently running image as confirmed. More... | |
int | boot_write_img_confirmed_multi (int image_index) |
Marks the image with the given index in the primary slot as confirmed. More... | |
int | mcuboot_swap_type (void) |
Determines the action, if any, that mcuboot will take on the next reboot. More... | |
int | mcuboot_swap_type_multi (int image_index) |
Determines the action, if any, that mcuboot will take on the next reboot. More... | |
int | boot_request_upgrade (int permanent) |
Marks the image in slot 1 as pending. On the next reboot, the system will perform a boot of the slot 1 image. More... | |
int | boot_request_upgrade_multi (int image_index, int permanent) |
Marks the image with the given index in the secondary slot as pending. On the next reboot, the system will perform a boot of the secondary slot image. More... | |
int | boot_erase_img_bank (uint8_t area_id) |
Erase the image Bank. More... | |
ssize_t | boot_get_area_trailer_status_offset (uint8_t area_id) |
Get the offset of the status in the image bank. More... | |
ssize_t | boot_get_trailer_status_offset (size_t area_size) |
Get the offset of the status from an image bank size. More... | |
MCUboot public API for MCUboot control of image boot process.
The header declares API functions that can be used to get information on and select application images for boot.