|
PebbleOS v4.47.0-1362-gd278268fe
|
#include <stdbool.h>#include <stdint.h>#include <pbl/device.h>#include <pbl/drivers/regulator.h>#include <pbl/kernel/mutex.h>Data Structures | |
| struct | pbl_regulator_ops |
| Regulator driver operations. More... | |
| struct | pbl_regulator |
| A power rail. More... | |
Macros | |
| #define | PBL_REGULATOR_STATE_DEFINE(sym) |
Define the class state of regulator sym, for the PBL_*_REGULATOR_DEFINE() macro of a driver. | |
| #define | PBL_REGULATOR_INIT(sym, _name, _parent, _ops, _enable_time_us, _always_on) |
Initializer for the struct pbl_regulator of regulator sym. | |
Functions | |
| int | pbl_regulator_dev_init (const struct pbl_device *dev) |
| Device init of every regulator: applies the driver's init, then switches the rail on if always-on, off otherwise. | |