Zephyr API Documentation
3.6.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
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_ */
eeprom.h
Public API for EEPROM drivers.
fake_eeprom_size_delegate
size_t fake_eeprom_size_delegate(const struct device *dev)
fff.h
DECLARE_FAKE_VALUE_FUNC
#define DECLARE_FAKE_VALUE_FUNC(...)
Definition:
fff.h:8684
off_t
__INTPTR_TYPE__ off_t
Definition:
types.h:36
device
Runtime device structure (in ROM) per driver instance.
Definition:
device.h:399
zephyr
drivers
eeprom
eeprom_fake.h
Generated on Thu Jul 4 2024 12:22:47 for Zephyr API Documentation by
1.9.6