|
Zephyr Project API 4.4.99
A Scalable Open Source RTOS
|
Fake regulator driver. More...
Files | |
| file | fake.h |
| Fake regulator driver API functions. | |
Fake regulator driver.
@driver_fake{regulator_interface,CONFIG_REGULATOR_FAKE,zephyr\,fake-regulator}
A @dtcompatible{zephyr\,fake-regulator} node is instantiated as the regulator parent device and each of its child nodes as a regulator device.
regulator_fake_get_voltage() is given a default custom_fake returning 1 V, re-installed on every reset. Install your own custom_fake in the test case to change what it reports.
| DECLARE_FAKE_VALUE_FUNC | ( | int | , |
| regulator_fake_disable | , | ||
| const struct device * | ) |
#include <fake.h>
@fake_of{regulator_driver_api::disable}
| DECLARE_FAKE_VALUE_FUNC | ( | int | , |
| regulator_fake_enable | , | ||
| const struct device * | ) |
#include <fake.h>
@fake_of{regulator_driver_api::enable}
| DECLARE_FAKE_VALUE_FUNC | ( | int | , |
| regulator_fake_get_active_discharge | , | ||
| const struct device * | , | ||
| bool * | ) |
#include <fake.h>
| DECLARE_FAKE_VALUE_FUNC | ( | int | , |
| regulator_fake_get_current_limit | , | ||
| const struct device * | , | ||
| int32_t * | ) |
#include <fake.h>
@fake_of{regulator_driver_api::get_current_limit}
| DECLARE_FAKE_VALUE_FUNC | ( | int | , |
| regulator_fake_get_error_flags | , | ||
| const struct device * | , | ||
| regulator_error_flags_t * | ) |
#include <fake.h>
@fake_of{regulator_driver_api::get_error_flags}
| DECLARE_FAKE_VALUE_FUNC | ( | int | , |
| regulator_fake_get_mode | , | ||
| const struct device * | , | ||
| regulator_mode_t * | ) |
#include <fake.h>
@fake_of{regulator_driver_api::get_mode}
#include <fake.h>
@fake_of{regulator_driver_api::get_voltage}
| DECLARE_FAKE_VALUE_FUNC | ( | int | , |
| regulator_fake_list_current_limit | , | ||
| const struct device * | , | ||
| unsigned int | , | ||
| int32_t * | ) |
#include <fake.h>
@fake_of{regulator_driver_api::list_current_limit}
| DECLARE_FAKE_VALUE_FUNC | ( | int | , |
| regulator_fake_list_voltage | , | ||
| const struct device * | , | ||
| unsigned int | , | ||
| int32_t * | ) |
#include <fake.h>
@fake_of{regulator_driver_api::list_voltage}
| DECLARE_FAKE_VALUE_FUNC | ( | int | , |
| regulator_fake_set_active_discharge | , | ||
| const struct device * | , | ||
| bool | ) |
#include <fake.h>
| DECLARE_FAKE_VALUE_FUNC | ( | int | , |
| regulator_fake_set_current_limit | , | ||
| const struct device * | , | ||
| int32_t | , | ||
| int32_t | ) |
#include <fake.h>
@fake_of{regulator_driver_api::set_current_limit}
| DECLARE_FAKE_VALUE_FUNC | ( | int | , |
| regulator_fake_set_mode | , | ||
| const struct device * | , | ||
| regulator_mode_t | ) |
#include <fake.h>
@fake_of{regulator_driver_api::set_mode}
| DECLARE_FAKE_VALUE_FUNC | ( | int | , |
| regulator_fake_set_voltage | , | ||
| const struct device * | , | ||
| int32_t | , | ||
| int32_t | ) |
#include <fake.h>
@fake_of{regulator_driver_api::set_voltage}
| DECLARE_FAKE_VALUE_FUNC | ( | int | , |
| regulator_parent_fake_dvs_state_set | , | ||
| const struct device * | , | ||
| regulator_dvs_state_t | ) |
#include <fake.h>
| DECLARE_FAKE_VALUE_FUNC | ( | int | , |
| regulator_parent_fake_ship_mode | , | ||
| const struct device * | ) |
#include <fake.h>
@fake_of{regulator_parent_driver_api::ship_mode}
| DECLARE_FAKE_VALUE_FUNC | ( | unsigned int | , |
| regulator_fake_count_current_limits | , | ||
| const struct device * | ) |
#include <fake.h>
#include <fake.h>
@fake_of{regulator_driver_api::count_voltages}