Zephyr Project API
4.4.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
12
13
#ifndef ZEPHYR_INCLUDE_DRIVERS_EEPROM_EEPROM_FAKE_H_
14
#define ZEPHYR_INCLUDE_DRIVERS_EEPROM_EEPROM_FAKE_H_
15
16
#include <
zephyr/drivers/eeprom.h
>
17
#include <
zephyr/fff.h
>
18
19
#ifdef __cplusplus
20
extern
"C"
{
21
#endif
22
50
52
DECLARE_FAKE_VALUE_FUNC
(
int
, fake_eeprom_read,
const
struct
device
*,
off_t
,
void
*,
size_t
);
53
55
DECLARE_FAKE_VALUE_FUNC
(
int
, fake_eeprom_write,
const
struct
device
*,
off_t
,
const
void
*,
size_t
);
56
58
DECLARE_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_ */
eeprom.h
Main header file for EEPROM driver API.
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:525
include
zephyr
drivers
eeprom
eeprom_fake.h
Generated on
for Zephyr Project API by
1.16.1