12 #include "tfm_hal_its.h"
13 #include "tfm_hal_ps.h"
15 #ifndef ITS_MAX_BLOCK_DATA_COPY
16 #define ITS_MAX_BLOCK_DATA_COPY 256
74 status = info->
read(info, src_block, dst_block_data_copy, src_offset,
81 status = info->
write(info, dst_block, dst_block_data_copy, dst_offset,
88 dst_offset += bytes_to_move;
89 src_offset += bytes_to_move;
92 size -= bytes_to_move;
Internal Trusted Storage service filesystem abstraction APIs. The purpose of this abstraction is to h...
psa_status_t its_flash_fs_validate_params(const struct its_flash_info_t *info)
Validates the configuration of the flash filesystem.
#define ITS_MAX_BLOCK_DATA_COPY
struct its_flash_info_t its_flash_info_external
its_flash_id_t
Enumerates the available flash devices.
struct its_flash_info_t its_flash_info_internal
psa_status_t its_flash_block_to_block_move(const struct its_flash_info_t *info, uint32_t dst_block, size_t dst_offset, uint32_t src_block, size_t src_offset, size_t size)
Moves data from source block ID to destination block ID.
psa_status_t(* 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.
const struct its_flash_info_t * its_flash_get_info(enum its_flash_id_t id)
Gets the flash info structure for the provided flash device.
struct flash_fs_info_t fs_info
Structure containing the required information about a flash device to be used by the ITS Flash FS...
int32_t psa_status_t
Function return status.
#define ITS_UTILS_MIN(x, y)
Evaluates to the minimum of the two parameters.
psa_status_t(* 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.