21 uint32_t block_id,
size_t offset)
34 uint32_t block_id, uint8_t *buff,
size_t offset,
37 uint32_t idx = get_phys_address(info, block_id, offset);
45 uint32_t block_id,
const uint8_t *buff,
46 size_t offset,
size_t size)
48 uint32_t idx = get_phys_address(info, block_id, offset);
67 uint32_t idx = get_phys_address(info, block_id, 0);
__STATIC_INLINE void * tfm_memset(void *ptr, int value, size_t num)
psa_status_t its_flash_ram_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.
psa_status_t its_flash_ram_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.
psa_status_t its_flash_ram_init(const struct its_flash_info_t *info)
Initialize the Flash Interface.
psa_status_t its_flash_ram_flush(const struct its_flash_info_t *info)
Flushes modifications to a block to flash.
Implementations of the flash interface functions for an emulated flash device using RAM...
psa_status_t its_flash_ram_erase(const struct its_flash_info_t *info, uint32_t block_id)
Erases block ID data.
__STATIC_INLINE void * tfm_memcpy(void *dest, const void *src, size_t num)
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.