Zephyr API Documentation 4.5.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Fake regulator driver API functions. More...

#include <zephyr/drivers/regulator.h>
#include <zephyr/fff.h>

Go to the source code of this file.

Functions

int regulator_fake_enable (const struct device *)
 Fake implementation of the regulator_driver_api::enable driver operation.
int regulator_fake_disable (const struct device *)
 Fake implementation of the regulator_driver_api::disable driver operation.
unsigned int regulator_fake_count_voltages (const struct device *)
 Fake implementation of the regulator_driver_api::count_voltages driver operation.
int regulator_fake_list_voltage (const struct device *, unsigned int, int32_t *)
 Fake implementation of the regulator_driver_api::list_voltage driver operation.
int regulator_fake_set_voltage (const struct device *, int32_t, int32_t)
 Fake implementation of the regulator_driver_api::set_voltage driver operation.
int regulator_fake_get_voltage (const struct device *, int32_t *)
 Fake implementation of the regulator_driver_api::get_voltage driver operation.
unsigned int regulator_fake_count_current_limits (const struct device *)
 Fake implementation of the regulator_driver_api::count_current_limits driver operation.
int regulator_fake_list_current_limit (const struct device *, unsigned int, int32_t *)
 Fake implementation of the regulator_driver_api::list_current_limit driver operation.
int regulator_fake_set_current_limit (const struct device *, int32_t, int32_t)
 Fake implementation of the regulator_driver_api::set_current_limit driver operation.
int regulator_fake_get_current_limit (const struct device *, int32_t *)
 Fake implementation of the regulator_driver_api::get_current_limit driver operation.
int regulator_fake_set_mode (const struct device *, regulator_mode_t)
 Fake implementation of the regulator_driver_api::set_mode driver operation.
int regulator_fake_get_mode (const struct device *, regulator_mode_t *)
 Fake implementation of the regulator_driver_api::get_mode driver operation.
int regulator_fake_set_active_discharge (const struct device *, bool)
 Fake implementation of the regulator_driver_api::set_active_discharge driver operation.
int regulator_fake_get_active_discharge (const struct device *, bool *)
 Fake implementation of the regulator_driver_api::get_active_discharge driver operation.
int regulator_fake_get_error_flags (const struct device *, regulator_error_flags_t *)
 Fake implementation of the regulator_driver_api::get_error_flags driver operation.
int regulator_parent_fake_dvs_state_set (const struct device *, regulator_dvs_state_t)
 Fake implementation of the regulator_parent_driver_api::dvs_state_set driver operation.
int regulator_parent_fake_ship_mode (const struct device *)
 Fake implementation of the regulator_parent_driver_api::ship_mode driver operation.

Detailed Description

Fake regulator driver API functions.