CycloneBOOT 2.6.6
Secure Bootloader for ARM Cortex-M MCU
Loading...
Searching...
No Matches
update_misc.h
Go to the documentation of this file.
1
31#ifndef _UPDATE_MISC_H
32#define _UPDATE_MISC_H
33
34// Dependencies
35#include "error.h"
36#include "update/update.h"
37
38// C++ guard
39#ifdef __cplusplus
40extern "C"
41{
42#endif
43
44// CycloneBOOT IAP miscellaneous related functions
45cboot_error_t updateInitInputImage(UpdateSettings *settings, UpdateContext *context);
46cboot_error_t updateInitOutputImage(UpdateSettings *settings, UpdateContext *context,
47 Slot *slot, uint32_t imageIdx);
48cboot_error_t updateGetImageHeaderFromSlot(Slot *slot, ImageHeader *header);
49
50// C++ guard
51#ifdef __cplusplus
52}
53#endif
54
55#endif // !_UPDATE_MISC_H
cboot_error_t
Error codes.
Definition cboot_error.h:57
Slot Type definition.
Definition memory.h:181
Update user settings.
Definition update.h:189
CycloneBOOT IAP User API.
cboot_error_t updateGetImageHeaderFromSlot(Slot *slot, ImageHeader *header)
This function retrieves the header of the image contained in the given flash memory slot....
Definition update_misc.c:355
cboot_error_t updateInitOutputImage(UpdateSettings *settings, UpdateContext *context, Slot *slot, uint32_t imageIdx)
Initialize Output Image settings. It will setup all settings needed to generate the output image.
Definition update_misc.c:248
cboot_error_t updateInitInputImage(UpdateSettings *settings, UpdateContext *context)
Initialize input (update) image settings. It will setup all settings needed to process the input imag...
Definition update_misc.c:128