Software APIs
spi_flash_emulator.h
1 // Copyright lowRISC contributors (OpenTitan project).
2 // Licensed under the Apache License, Version 2.0, see LICENSE for details.
3 // SPDX-License-Identifier: Apache-2.0
4 
5 #ifndef OPENTITAN_SW_DEVICE_LIB_TESTING_SPI_FLASH_EMULATOR_H_
6 #define OPENTITAN_SW_DEVICE_LIB_TESTING_SPI_FLASH_EMULATOR_H_
7 
8 #include <stdbool.h>
9 #include <stdint.h>
10 
11 #include "sw/device/lib/base/status.h"
14 
15 /**
16  * Emulate a SPI eeprom.
17  *
18  * @param spih A SPI host handle.
19  * @param spid A SPI device handle.
20  * @return A status.
21  */
22 status_t spi_flash_emulator(dif_spi_host_t *spih,
24 
25 #endif // OPENTITAN_SW_DEVICE_LIB_TESTING_SPI_FLASH_EMULATOR_H_