PebbleOS
Loading...
Searching...
No Matches
nPM1300 regulators

Regulator rails of the nPM1300, cells of nPM1300. More...

Data Structures

struct  pbl_npm1300_regulator
 nPM1300 rail. More...
 

Macros

#define PBL_NPM1300_REGULATOR_DEFINE(sym, _name, _pmic, _rail, _voltage_mv, _ldo, _always_on)
 Define a PMIC rail.
 

Enumerations

enum  pbl_npm1300_rail { PBL_NPM1300_BUCK1 , PBL_NPM1300_BUCK2 , PBL_NPM1300_LDSW1 , PBL_NPM1300_LDSW2 }
 nPM1300 rails. More...
 

Detailed Description

Regulator rails of the nPM1300, cells of nPM1300.


Data Structure Documentation

◆ pbl_npm1300_regulator

struct pbl_npm1300_regulator

nPM1300 rail.

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.

Macro Definition Documentation

◆ PBL_NPM1300_REGULATOR_DEFINE

#define PBL_NPM1300_REGULATOR_DEFINE (   sym,
  _name,
  _pmic,
  _rail,
  _voltage_mv,
  _ldo,
  _always_on 
)
Value:
const struct pbl_npm1300_regulator sym = { \
.reg = PBL_REGULATOR_INIT(sym, _name, &(_pmic)->dev, &pbl_npm1300_regulator_ops, _always_on), \
.rail = (_rail), \
.voltage_mv = (_voltage_mv), \
.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
symSymbol of the rail; the regulator is sym.reg.
_nameName.
_pmicCore, a struct pbl_npm1300.
_railRail, an pbl_npm1300_rail.
_voltage_mvOutput voltage in mV.
_ldoLDSW rails only: run as an LDO.
_always_onSwitched on at init and never off.

Enumeration Type Documentation

◆ 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.