Zephyr API Documentation 4.5.0-rc1
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
12
13#ifndef ZEPHYR_INCLUDE_DRIVERS_EEPROM_EEPROM_FAKE_H_
14#define ZEPHYR_INCLUDE_DRIVERS_EEPROM_EEPROM_FAKE_H_
15
17#include <zephyr/fff.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
50
52DECLARE_FAKE_VALUE_FUNC(int, fake_eeprom_read, const struct device *, off_t, void *, size_t);
53
55DECLARE_FAKE_VALUE_FUNC(int, fake_eeprom_write, const struct device *, off_t, const void *, size_t);
56
58DECLARE_FAKE_VALUE_FUNC(size_t, fake_eeprom_size, const struct device *);
59
63
64#ifdef __cplusplus
65}
66#endif
67
68#endif /* ZEPHYR_INCLUDE_DRIVERS_EEPROM_EEPROM_FAKE_H_ */
Main header file for EEPROM driver API.
size_t fake_eeprom_size(const struct device *)
Fake implementation of the eeprom_driver_api::size driver operation.
int fake_eeprom_write(const struct device *, off_t, const void *, size_t)
Fake implementation of the eeprom_driver_api::write driver operation.
int fake_eeprom_read(const struct device *, off_t, void *, size_t)
Fake implementation of the eeprom_driver_api::read driver operation.
__INTPTR_TYPE__ off_t
Definition types.h:36
Runtime device structure (in ROM) per driver instance.
Definition device.h:543