|
CycloneBOOT 2.6.6
Secure Bootloader for ARM Cortex-M MCU
|
CycloneBOOT Memory Layer Abstraction. More...
Macros | |
| #define | TRACE_LEVEL CBOOT_TRACE_LEVEL |
| #define | strncasecmp _strnicmp |
| #define | strcasecmp _stricmp |
Functions | |
| cboot_error_t | slotsInit (Memory *memory) |
| bool_t | isSlotsOverlap (Slot *slot1, Slot *slot2) |
| cboot_error_t | cleanupSlotHandler (Slot *slot) |
| cboot_error_t | memoryInit (Memory *memories, size_t nbMemories) |
| Memory initialization function. | |
| cboot_error_t | memoryDeInit (Memory *memories, size_t nbMemories) |
| Memory de-initialization function. | |
| cboot_error_t | memoryGetInfo (Memory *memory, MemoryInfo *info) |
| Memory get driver information function. | |
| cboot_error_t | memoryGetSlotStatus (Slot *slot, SlotStatus *status) |
| Get Memory Status function. | |
| cboot_error_t | memoryWriteSlot (Slot *slot, uint32_t offset, uint8_t *buffer, size_t length, size_t *written, uint8_t flag) |
| Write Data into Memory function. | |
| cboot_error_t | memoryReadSlot (Slot *slot, uint32_t offset, uint8_t *buffer, size_t length) |
| Read Data from Memory function. | |
| cboot_error_t | memoryCopySlot (Slot *src, Slot *dst, size_t bytesNumber) |
| Copy source slot content to destination slot. | |
| cboot_error_t | memoryEraseSlot (Slot *slot, uint32_t offset, size_t length) |
| Erase Data from Memory function. | |
| void | memoryCompareSlot (Slot *src, Slot *dst, uint8_t *result) |
| Compare two slot metadata. | |
| cboot_error_t | memoryCompareSlotContent (Slot *src, Slot *dst, uint8_t *result) |
| Compare two slot contents. | |
| cboot_error_t | memoryCleanup (Memory *memories, size_t nbMemories) |
| Memory cleanup function. | |
| cboot_error_t | memoryGetSlotByCType (Memory *memory, uint8_t slotCType, Slot **slot) |
| Search a slot in memory that match the given slot content type. | |
| cboot_error_t | memoryGetMemoryByRole (Memory *memories, size_t nb_memories, MemoryRole role, Memory **memory) |
| void | memoryInitWriteBuffer (void) |
| Initialize memory write buffer. | |
| void | memoryResetWriteBuffer (void) |
| Reset memory write buffer. | |
CycloneBOOT Memory Layer Abstraction.
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2021-2026 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneBOOT Open.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Compare two slot metadata.
Compare two given slots metadata.
| cboot_error_t memoryCompareSlotContent | ( | Slot * | src, |
| Slot * | dst, | ||
| uint8_t * | result | ||
| ) |
Compare two slot contents.
Compare two given slots content.
| cboot_error_t memoryCopySlot | ( | Slot * | src, |
| Slot * | dst, | ||
| size_t | bytesNumber | ||
| ) |
Copy source slot content to destination slot.
Make a backup of the internal slot.
| [in] | src | Pointer to source slot to copy from |
| [out] | dst | Pointer to destination slot to copy in |
| [in] | bytesNumber | number of bytes to be copied from src slot to dst slot |
| cboot_error_t memoryGetSlotByCType | ( | Memory * | memory, |
| uint8_t | slotCType, | ||
| Slot ** | slot | ||
| ) |
Search a slot in memory that match the given slot content type.
| memory | Pointer to memory in which we are looking for |
| slotCType | Slot content type we are looking for |
| slot | Pointer to the slot we are looking for |