Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Nordic nPM13xx PMIC battery charger. More...

Files

file  npm13xx_charger.h
 Header file for extended sensor API of nPM13xx charger.

Enumerations

enum  sensor_channel_npm13xx_charger { SENSOR_CHAN_NPM13XX_CHARGER_STATUS = SENSOR_CHAN_PRIV_START , SENSOR_CHAN_NPM13XX_CHARGER_ERROR , SENSOR_CHAN_NPM13XX_CHARGER_VBUS_STATUS }
 Custom sensor channels for the nPM13xx charger. More...
enum  sensor_attribute_npm13xx_charger {
  SENSOR_ATTR_NPM13XX_CHARGER_VBUS_PRESENT = SENSOR_ATTR_PRIV_START , SENSOR_ATTR_NPM13XX_CHARGER_VBUS_CUR_LIMIT , SENSOR_ATTR_NPM13XX_CHARGER_VBUS_OVERVLT_PROT , SENSOR_ATTR_NPM13XX_CHARGER_VBUS_UNDERVLT ,
  SENSOR_ATTR_NPM13XX_CHARGER_VBUS_SUSPENDED , SENSOR_ATTR_NPM13XX_CHARGER_VBUS_BUSOUT
}
 Custom sensor attributes for the nPM13xx charger. More...

Detailed Description

Nordic nPM13xx PMIC battery charger.

Enumeration Type Documentation

◆ sensor_attribute_npm13xx_charger

#include <zephyr/drivers/sensor/npm13xx_charger.h>

Custom sensor attributes for the nPM13xx charger.

VBUS status flags, read with sensor_attr_get() on SENSOR_CHAN_NPM13XX_CHARGER_VBUS_STATUS. sensor_value.val1 is 1 when the flag is set.

Enumerator
SENSOR_ATTR_NPM13XX_CHARGER_VBUS_PRESENT 

VBUS is present.

SENSOR_ATTR_NPM13XX_CHARGER_VBUS_CUR_LIMIT 

VBUS current limit is active.

SENSOR_ATTR_NPM13XX_CHARGER_VBUS_OVERVLT_PROT 

VBUS overvoltage protection is active.

SENSOR_ATTR_NPM13XX_CHARGER_VBUS_UNDERVLT 

VBUS undervoltage is detected.

SENSOR_ATTR_NPM13XX_CHARGER_VBUS_SUSPENDED 

VBUS is suspended.

SENSOR_ATTR_NPM13XX_CHARGER_VBUS_BUSOUT 

VBUSOUT is active.

◆ sensor_channel_npm13xx_charger

#include <zephyr/drivers/sensor/npm13xx_charger.h>

Custom sensor channels for the nPM13xx charger.

Enumerator
SENSOR_CHAN_NPM13XX_CHARGER_STATUS 

Charger status register value.

SENSOR_CHAN_NPM13XX_CHARGER_ERROR 

Charger error reason register value.

SENSOR_CHAN_NPM13XX_CHARGER_VBUS_STATUS 

VBUS status register value.

Read individual flags with sensor_attr_get() and the sensor_attribute_npm13xx_charger attributes.