TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
its_flash_nor.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019-2020, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
15 #include "its_flash.h"
16 
21 
26  uint32_t block_id, uint8_t *buff, size_t offset,
27  size_t size);
28 
33  uint32_t block_id, const uint8_t *buff,
34  size_t offset, size_t size);
35 
40 
45  uint32_t block_id);
psa_status_t its_flash_nor_read(const struct its_flash_info_t *info, uint32_t block_id, uint8_t *buff, size_t offset, size_t size)
Reads block data from the position specified by block ID and offset.
Definition: its_flash_nor.c:40
psa_status_t its_flash_nor_init(const struct its_flash_info_t *info)
Initialize the Flash Interface.
Definition: its_flash_nor.c:28
Structure containing the required information about a flash device to be used by the ITS Flash FS...
Definition: its_flash.h:73
int32_t psa_status_t
Function return status.
Definition: crypto_types.h:43
psa_status_t its_flash_nor_flush(const struct its_flash_info_t *info)
Flushes modifications to a block to flash.
Definition: its_flash_nor.c:70
psa_status_t its_flash_nor_erase(const struct its_flash_info_t *info, uint32_t block_id)
Erases block ID data.
Definition: its_flash_nor.c:79
psa_status_t its_flash_nor_write(const struct its_flash_info_t *info, uint32_t block_id, const uint8_t *buff, size_t offset, size_t size)
Writes block data to the position specified by block ID and offset.
Definition: its_flash_nor.c:55