1 /*
2  * Copyright (c) 2022 Vestas Wind Systems A/S
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef ZEPHYR_INCLUDE_DRIVERS_EEPROM_FAKE_EEPROM_H_
8 #define ZEPHYR_INCLUDE_DRIVERS_EEPROM_FAKE_EEPROM_H_
9 
10 #include <zephyr/drivers/eeprom.h>
11 #include <zephyr/fff.h>
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 DECLARE_FAKE_VALUE_FUNC(int, fake_eeprom_read, const struct device *, off_t, void *, size_t);
18 
19 DECLARE_FAKE_VALUE_FUNC(int, fake_eeprom_write, const struct device *, off_t, const void *, size_t);
20 
21 DECLARE_FAKE_VALUE_FUNC(size_t, fake_eeprom_size, const struct device *);
22 
23 size_t fake_eeprom_size_delegate(const struct device *dev);
24 
25 #ifdef __cplusplus
26 }
27 #endif
28 
29 #endif /* ZEPHYR_INCLUDE_DRIVERS_EEPROM_FAKE_EEPROM_H_ */
30