Zephyr API Documentation 4.5.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
fake_comp.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12
13#ifndef ZEPHYR_INCLUDE_DRIVERS_COMPARATOR_FAKE_H_
14#define ZEPHYR_INCLUDE_DRIVERS_COMPARATOR_FAKE_H_
15
17#include <zephyr/fff.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
43
45DECLARE_FAKE_VALUE_FUNC(int,
47 const struct device *);
48
50DECLARE_FAKE_VALUE_FUNC(int,
52 const struct device *,
54
56DECLARE_FAKE_VALUE_FUNC(int,
58 const struct device *,
60 void *);
61
63DECLARE_FAKE_VALUE_FUNC(int,
65 const struct device *);
66
70
71#ifdef __cplusplus
72}
73#endif
74
75#endif /* ZEPHYR_INCLUDE_DRIVERS_COMPARATOR_FAKE_H_ */
Main header file for comparator driver API.
int comp_fake_comp_get_output(const struct device *)
Fake implementation of the comparator_driver_api::get_output driver operation.
int comp_fake_comp_set_trigger_callback(const struct device *, comparator_callback_t, void *)
Fake implementation of the comparator_driver_api::set_trigger_callback driver operation.
int comp_fake_comp_trigger_is_pending(const struct device *)
Fake implementation of the comparator_driver_api::trigger_is_pending driver operation.
int comp_fake_comp_set_trigger(const struct device *, enum comparator_trigger)
Fake implementation of the comparator_driver_api::set_trigger driver operation.
void(* comparator_callback_t)(const struct device *dev, void *user_data)
Comparator callback template.
Definition comparator.h:50
comparator_trigger
Comparator trigger enumerations.
Definition comparator.h:33
Runtime device structure (in ROM) per driver instance.
Definition device.h:543