Zephyr Project API
3.3.0
A Scalable Open Source RTOS
|
Regulator Parent Interface. More...
Modules | |
PCA9420 Utilities. | |
Functions | |
static int | regulator_parent_dvs_state_set (const struct device *dev, regulator_dvs_state_t state) |
Set a DVS state. More... | |
Regulator Parent Interface.
|
inlinestatic |
#include <include/zephyr/drivers/regulator.h>
Set a DVS state.
Some PMICs feature DVS (Dynamic Voltage Scaling) by allowing to program the voltage level for multiple states. Such states may be automatically changed by hardware using GPIO pins. Certain MCUs even allow to automatically configure specific output pins when entering low-power modes so that PMIC state is changed without software intervention. This API can be used when state needs to be changed by software.
dev | Parent regulator device instance. |
state | DVS state (vendor specific identifier). |
0 | If successful. |
-ENOTSUP | If given state is not supported. |
-EPERM | If state can't be changed by software. |
-ENOSYS | If function is not implemented. |
-errno | In case of any other error. |