1 /* 2 * Copyright (c) 2023 Nordic Semiconductor ASA 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 6 #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_NPM1300_CHARGER_H_ 7 #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_NPM1300_CHARGER_H_ 8 9 #include <zephyr/drivers/sensor.h> 10 11 /* NPM1300 charger specific channels */ 12 enum sensor_channel_npm1300_charger { 13 SENSOR_CHAN_NPM1300_CHARGER_STATUS = SENSOR_CHAN_PRIV_START, 14 SENSOR_CHAN_NPM1300_CHARGER_ERROR, 15 SENSOR_CHAN_NPM1300_CHARGER_VBUS_STATUS, 16 }; 17 18 /* NPM1300 charger specific attributes */ 19 enum sensor_attribute_npm1300_charger { 20 SENSOR_ATTR_NPM1300_CHARGER_VBUS_PRESENT = SENSOR_ATTR_PRIV_START, 21 SENSOR_ATTR_NPM1300_CHARGER_VBUS_CUR_LIMIT, 22 SENSOR_ATTR_NPM1300_CHARGER_VBUS_OVERVLT_PROT, 23 SENSOR_ATTR_NPM1300_CHARGER_VBUS_UNDERVLT, 24 SENSOR_ATTR_NPM1300_CHARGER_VBUS_SUSPENDED, 25 SENSOR_ATTR_NPM1300_CHARGER_VBUS_BUSOUT, 26 }; 27 28 #endif 29