Zephyr API Documentation 4.3.0-rc2
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
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
19 const struct device *);
21 unsigned int, int32_t *);
30 const struct device *, int32_t, int32_t);
32 const struct device *, int32_t *);
38 bool);
40 bool *);
42 const struct device *, regulator_error_flags_t *);
43
45 const struct device *, regulator_dvs_state_t);
47 const struct device *);
48
49#ifdef __cplusplus
50}
51#endif
52
53#endif /* ZEPHYR_TESTS_DRIVERS_CAN_SHELL_FAKE_CAN_H_ */
int regulator_fake_get_active_discharge(const struct device *arg0, bool *arg1)
int regulator_fake_get_current_limit(const struct device *arg0, int32_t *arg1)
int regulator_fake_set_active_discharge(const struct device *arg0, bool arg1)
int regulator_fake_enable(const struct device *arg0)
int regulator_parent_fake_ship_mode(const struct device *arg0)
int regulator_fake_set_current_limit(const struct device *arg0, int32_t arg1, int32_t arg2)
int regulator_fake_get_error_flags(const struct device *arg0, regulator_error_flags_t *arg1)
unsigned int regulator_fake_count_current_limits(const struct device *arg0)
unsigned int regulator_fake_count_voltages(const struct device *arg0)
int regulator_fake_set_mode(const struct device *arg0, regulator_mode_t arg1)
int regulator_fake_get_mode(const struct device *arg0, regulator_mode_t *arg1)
int regulator_fake_list_current_limit(const struct device *arg0, unsigned int arg1, int32_t *arg2)
int regulator_parent_fake_dvs_state_set(const struct device *arg0, regulator_dvs_state_t arg1)
int regulator_fake_set_voltage(const struct device *arg0, int32_t arg1, int32_t arg2)
int regulator_fake_disable(const struct device *arg0)
int regulator_fake_list_voltage(const struct device *arg0, unsigned int arg1, int32_t *arg2)
int regulator_fake_get_voltage(const struct device *arg0, int32_t *arg1)
#define DECLARE_FAKE_VALUE_FUNC(...)
Definition fff.h:8684
uint8_t regulator_mode_t
Opaque type to store regulator modes.
Definition regulator.h:46
uint8_t regulator_error_flags_t
Opaque bit map for regulator error flags (see REGULATOR_ERRORS)
Definition regulator.h:49
uint8_t regulator_dvs_state_t
Opaque type to store regulator DVS states.
Definition regulator.h:43
Main header file for regulator driver API.
__INT32_TYPE__ int32_t
Definition stdint.h:74
Runtime device structure (in ROM) per driver instance.
Definition device.h:510