|
PebbleOS
|
Regulator driver operations. More...
#include <regulator.h>
Data Fields | |
| int(* | init )(const struct pbl_regulator *reg) |
| Optional. | |
| int(* | enable )(const struct pbl_regulator *reg) |
| Switch the rail on. | |
| int(* | disable )(const struct pbl_regulator *reg) |
| Switch the rail off. | |
Regulator driver operations.
| int(* pbl_regulator_ops::disable) (const struct pbl_regulator *reg) |
Switch the rail off.
Returns 0 or a negative errno.
| int(* pbl_regulator_ops::enable) (const struct pbl_regulator *reg) |
Switch the rail on.
Returns 0 or a negative errno.
| int(* pbl_regulator_ops::init) (const struct pbl_regulator *reg) |
Optional.
Apply the rail's static configuration. Returns 0 or a negative errno.