Zephyr API Documentation 3.7.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
eeprom_fake.h
Go to the documentation of this file.
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
11#include <zephyr/fff.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17DECLARE_FAKE_VALUE_FUNC(int, fake_eeprom_read, const struct device *, off_t, void *, size_t);
18
19DECLARE_FAKE_VALUE_FUNC(int, fake_eeprom_write, const struct device *, off_t, const void *, size_t);
20
21DECLARE_FAKE_VALUE_FUNC(size_t, fake_eeprom_size, const struct device *);
22
23size_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_ */
Public API for EEPROM drivers.
size_t fake_eeprom_size_delegate(const struct device *dev)
#define DECLARE_FAKE_VALUE_FUNC(...)
Definition fff.h:8684
__INTPTR_TYPE__ off_t
Definition types.h:36
Runtime device structure (in ROM) per driver instance.
Definition device.h:412