Lines Matching full:charger
26 static const struct device *charger = DEVICE_DT_GET(DT_NODELABEL(npm1300_ek_charger)); variable
85 sensor_sample_fetch(charger); in read_sensors()
86 sensor_channel_get(charger, SENSOR_CHAN_GAUGE_VOLTAGE, &volt); in read_sensors()
87 sensor_channel_get(charger, SENSOR_CHAN_GAUGE_AVG_CURRENT, ¤t); in read_sensors()
88 sensor_channel_get(charger, SENSOR_CHAN_GAUGE_TEMP, &temp); in read_sensors()
89 sensor_channel_get(charger, (enum sensor_channel)SENSOR_CHAN_NPM1300_CHARGER_STATUS, in read_sensors()
91 sensor_channel_get(charger, (enum sensor_channel)SENSOR_CHAN_NPM1300_CHARGER_ERROR, &error); in read_sensors()
92 sensor_attr_get(charger, (enum sensor_channel)SENSOR_CHAN_NPM1300_CHARGER_VBUS_STATUS, in read_sensors()
104 printk("Charger Status: %d, Error: %d, VBUS: %s\n", status.val1, error.val1, in read_sensors()
119 if (!device_is_ready(charger)) { in main()
120 printk("Charger device not ready.\n"); in main()
144 /* Read and display charger status */ in main()