PebbleOS
Loading...
Searching...
No Matches
Data Structures | Macros | Enumerations | Variables
nPM1300

Nordic nPM1300 PMIC configuration and extra operations. More...

Data Structures

struct  Npm1300Config
 nPM1300 board configuration. More...
 
struct  Npm1300Ops_t
 Extra nPM1300 operations for other drivers. More...
 

Macros

#define NPM1300_DISCHG_LIMIT_MA_MAX   1000UL
 Maximum discharge current limit in mA.
 

Enumerations

enum  Npm1300GpioId_t {
  Npm1300_Gpio0 , Npm1300_Gpio1 , Npm1300_Gpio2 , Npm1300_Gpio3 ,
  Npm1300_Gpio4
}
 nPM1300 GPIO pins. More...
 

Variables

Npm1300Ops_t NPM1300_OPS
 nPM1300 operations.
 

Detailed Description

Nordic nPM1300 PMIC configuration and extra operations.

The board provides an Npm1300Config named NPM1300_CONFIG.

Npm1300Ops_t NPM1300_OPS
nPM1300 operations.
bool(* ldo2_set_enabled)(bool enabled)
Switch load switch 2.
Definition npm1300.h:62

Data Structure Documentation

◆ Npm1300Config

struct Npm1300Config

nPM1300 board configuration.

Data Fields
uint16_t chg_current_ma Charge current in mA, 32 to 800 in 2 mA steps.
uint16_t dischg_limit_ma Discharge current limit in mA, 200 or 1000.
uint8_t ntc_hot_celsius NTC hot threshold in degrees Celsius; charging stops above it.
uint8_t term_current_pct Charge termination current, in percent of the charge current: 10 or 20.
uint16_t thermistor_beta Thermistor beta value.
uint16_t vbus_current_lim0 VBUS current limit in mA applied when USB is connected, 0 to keep the default.
uint16_t vbus_current_startup VBUS current limit in mA applied at startup, 0 to keep the default.

Macro Definition Documentation

◆ NPM1300_DISCHG_LIMIT_MA_MAX

#define NPM1300_DISCHG_LIMIT_MA_MAX   1000UL

Maximum discharge current limit in mA.

Enumeration Type Documentation

◆ Npm1300GpioId_t

nPM1300 GPIO pins.

Enumerator
Npm1300_Gpio0 

GPIO0.

Npm1300_Gpio1 

GPIO1.

Npm1300_Gpio2 

GPIO2.

Npm1300_Gpio3 

GPIO3.

Npm1300_Gpio4 

GPIO4.

Variable Documentation

◆ NPM1300_OPS

Npm1300Ops_t NPM1300_OPS
extern

nPM1300 operations.