Zephyr Project API  3.3.0
A Scalable Open Source RTOS
fake.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2022 Nordic Semiconductor ASA
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
6#ifndef ZEPHYR_DRIVERS_REGULATOR_FAKE_H_
7#define ZEPHYR_DRIVERS_REGULATOR_FAKE_H_
8
10#include <zephyr/fff.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_enable, const struct device *);
17DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_disable, const struct device *);
18DECLARE_FAKE_VALUE_FUNC(unsigned int, regulator_fake_count_voltages,
19 const struct device *);
20DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_list_voltage, const struct device *,
21 unsigned int, int32_t *);
22DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_set_voltage, const struct device *,
24DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_get_voltage, const struct device *,
25 int32_t *);
26DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_set_current_limit,
27 const struct device *, int32_t, int32_t);
28DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_get_current_limit,
29 const struct device *, int32_t *);
30DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_set_mode, const struct device *,
32DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_get_mode, const struct device *,
34DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_get_error_flags,
35 const struct device *, regulator_error_flags_t *);
36
37DECLARE_FAKE_VALUE_FUNC(int, regulator_parent_fake_dvs_state_set,
38 const struct device *, regulator_dvs_state_t);
39
40#ifdef __cplusplus
41}
42#endif
43
44#endif /* ZEPHYR_TESTS_DRIVERS_CAN_SHELL_FAKE_CAN_H_ */
DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_enable, const struct device *)
uint8_t regulator_mode_t
Definition: regulator.h:34
uint8_t regulator_error_flags_t
Definition: regulator.h:37
uint8_t regulator_dvs_state_t
Definition: regulator.h:31
__INT32_TYPE__ int32_t
Definition: stdint.h:74
Runtime device structure (in ROM) per driver instance.
Definition: device.h:378