Regulator rails of the nPM1300, cells of nPM1300.
More...
Regulator rails of the nPM1300, cells of nPM1300.
◆ pbl_npm1300_regulator
| struct pbl_npm1300_regulator |
| Data Fields |
|
bool |
ldo |
LDSW rails only: run as an LDO rather than a load switch. |
|
enum pbl_npm1300_rail |
rail |
Rail. |
|
struct pbl_regulator |
reg |
Regulator, child of the core. |
|
uint16_t |
voltage_mv |
Output voltage in mV, 1000 to 3300 in 100 mV steps; unused by a load switch. |
◆ PBL_NPM1300_REGULATOR_DEFINE
| #define PBL_NPM1300_REGULATOR_DEFINE |
( |
|
sym, |
|
|
|
_name, |
|
|
|
_pmic, |
|
|
|
_rail, |
|
|
|
_voltage_mv, |
|
|
|
_ldo, |
|
|
|
_always_on |
|
) |
| |
Value:
.rail = (_rail), \
.ldo = (_ldo), \
}; \
PBL_DEVICE_REGISTER(sym, &sym.
reg.
dev)
struct pbl_regulator reg
Regulator, child of the core.
Definition npm1300.h:33
uint16_t voltage_mv
Output voltage in mV, 1000 to 3300 in 100 mV steps; unused by a load switch.
Definition npm1300.h:37
nPM1300 rail.
Definition npm1300.h:31
struct pbl_device dev
Device.
Definition regulator.h:50
#define PBL_REGULATOR_INIT(sym, _name, _parent, _ops, _always_on)
Initializer for the struct pbl_regulator of regulator sym.
Definition regulator.h:79
#define PBL_REGULATOR_STATE_DEFINE(sym)
Define the class state of regulator sym, for the PBL_*_REGULATOR_DEFINE() macro of a driver.
Definition regulator.h:65
Define a PMIC rail.
- Parameters
-
| sym | Symbol of the rail; the regulator is sym.reg. |
| _name | Name. |
| _pmic | Core, a struct pbl_npm1300. |
| _rail | Rail, an pbl_npm1300_rail. |
| _voltage_mv | Output voltage in mV. |
| _ldo | LDSW rails only: run as an LDO. |
| _always_on | Switched on at init and never off. |
◆ pbl_npm1300_rail
nPM1300 rails.
| Enumerator |
|---|
| PBL_NPM1300_BUCK1 | BUCK1.
|
| PBL_NPM1300_BUCK2 | BUCK2.
|
| PBL_NPM1300_LDSW1 | Load switch / LDO 1.
|
| PBL_NPM1300_LDSW2 | Load switch / LDO 2.
|