Software APIs
sw
device
lib
testing
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"
12
#include "
sw/device/lib/dif/dif_spi_device.h
"
13
#include "
sw/device/lib/dif/dif_spi_host.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,
23
dif_spi_device_handle_t
*spid);
24
25
#endif
// OPENTITAN_SW_DEVICE_LIB_TESTING_SPI_FLASH_EMULATOR_H_
Return to
OpenTitan Documentation