1 /*
2  * Copyright (c) 2024 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef ZEPHYR_INCLUDE_DRIVERS_COMPARATOR_FAKE_H_
8 #define ZEPHYR_INCLUDE_DRIVERS_COMPARATOR_FAKE_H_
9 
10 #include <zephyr/drivers/comparator.h>
11 #include <zephyr/fff.h>
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 DECLARE_FAKE_VALUE_FUNC(int,
18 			comp_fake_comp_get_output,
19 			const struct device *);
20 
21 DECLARE_FAKE_VALUE_FUNC(int,
22 			comp_fake_comp_set_trigger,
23 			const struct device *,
24 			enum comparator_trigger);
25 
26 DECLARE_FAKE_VALUE_FUNC(int,
27 			comp_fake_comp_set_trigger_callback,
28 			const struct device *,
29 			comparator_callback_t,
30 			void *);
31 
32 DECLARE_FAKE_VALUE_FUNC(int,
33 			comp_fake_comp_trigger_is_pending,
34 			const struct device *);
35 
36 #ifdef __cplusplus
37 }
38 #endif
39 
40 #endif /* ZEPHYR_INCLUDE_DRIVERS_COMPARATOR_FAKE_H_ */
41