Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
Regulator Interface. More...
Data Structures | |
struct | regulator_driver_api |
Driver-specific API functions to support regulator control. More... | |
Functions | |
static int | regulator_enable (const struct device *reg, struct onoff_client *cli) |
Enable a regulator. More... | |
static int | regulator_disable (const struct device *reg) |
Disable a regulator. More... | |
Regulator Interface.
|
inlinestatic |
#include <include/drivers/regulator.h>
Disable a regulator.
Release a regulator after a previous regulator_enable() completed successfully.
If the release removes the last dependency on the regulator it will begin a transition to its "off" state. There is currently no mechanism to notify when the regulator has completely turned off.
This must be invoked at most once for each successful regulator_enable().
reg | a regulator device |
|
inlinestatic |
#include <include/drivers/regulator.h>
Enable a regulator.
Reference-counted request that a regulator be turned on. This is an asynchronous operation; if successfully initiated the result will be communicated through the cli
parameter.
A regulator is considered "on" when it has reached a stable/usable state.
reg | a regulator device |
cli | used to notify the caller when the attempt to turn on the regulator has completed. |