zephyr/drivers/sensor
Simon Glass 5afdceee8c sensor: shell: Add a 'battery' command
It is useful to show sensor channels for a battery in cohesive block as
it is easier to read. Add a 'battery' command to handle this. It only
supports a single battery, relying on the device-tree alias to select
it.

uart:~$ battery
Temp:  23.55 C
V:     4.31 V
V-desired: 4.40 V
I:    574 mA (CHG)
I-desired:  2000 mA
Charging: Not Allowed
Charge: 100 %
V-design: 3.86 V
Remaining: 6764 mA
Cap-full: 6764 mA
Design: 6910 mA
Time full: 0h:00
Time empty: 0h:00

Signed-off-by: Simon Glass <sjg@chromium.org>
2020-07-23 12:12:09 -04:00
..
adt7420 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
adxl345 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
adxl362 sensor: adxl362: Add chip select flags 2020-07-01 16:40:03 -05:00
adxl372 sensor: adxl372: Add chip select flags 2020-07-01 16:40:03 -05:00
ak8975 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
amg88xx zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
ams_iAQcore zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
apds9960 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
bma280 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
bmc150_magn zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
bme280 drivers: sensor: bme280: respect devicetree cs-gpios flags 2020-07-09 06:07:07 -05:00
bme680 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
bmg160 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
bmi160 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
bmm150 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
bq274xx drivers: sensor: Check i2c device pointer is non-null in bq274xx 2020-06-17 09:31:16 +02:00
ccs811 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
dht zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
dps310 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
ens210 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
fxas21002 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
fxos8700 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
grove zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
hmc5883l zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
hp206c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
hts221 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
iis2dh drivers/sensors: Add iis2dh accelerometer sensor support 2020-07-10 11:49:40 -05:00
iis2dlpc sensor: iis2dlpc: Add chip select flags 2020-07-01 16:40:03 -05:00
iis2mdc sensor: iis2mdc: Add chip select flags 2020-07-01 16:40:03 -05:00
iis3dhhc sensor: iis3dhhc: Add chip select flags 2020-07-01 16:40:03 -05:00
isl29035 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
ism330dhcx sensor: ism330dhcx: Add chip select flags 2020-07-01 16:40:03 -05:00
lis2dh sensor: lis2dh: Add chip select flags 2020-07-01 16:40:03 -05:00
lis2ds12 sensor: lis2ds12: Add chip select flags 2020-07-01 16:40:03 -05:00
lis2dw12 sensor: lis2dw12: Add chip select flags 2020-07-01 16:40:03 -05:00
lis2mdl sensor: lis2mdl: Add chip select flags 2020-07-01 16:40:03 -05:00
lis3mdl zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
lps22hb zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
lps22hh sensor: lps22hh: Add chip select flags 2020-07-01 16:40:03 -05:00
lps25hb zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
lsm6ds0 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
lsm6dsl sensor: lsm6dsl: Add chip select flags 2020-07-01 16:40:03 -05:00
lsm6dso sensor: lsm6dso: Add chip select flags 2020-07-01 16:40:03 -05:00
lsm9ds0_gyro zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
lsm9ds0_mfd zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
lsm303dlhc_magn zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
max17055 sensor: max17055: Add MAX17055 driver 2020-07-23 12:12:09 -04:00
max30101 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
max44009 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
mchp_tach_xec zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
mcp9808 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
mpr zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
mpu6050 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
ms5607 sensor: ms5607: Add chip select flags 2020-07-01 16:40:03 -05:00
ms5837 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
nrf5 drivers: sensor: nrf5: Adapt temp driver to use onoff for clock 2020-07-20 16:22:21 +02:00
nxp_kinetis_temp zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
opt3001 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
pms7003 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
qdec_nrfx zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
sht3xd zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
si7006 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
si7060 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
stts751 sensors : fix bad pin value when disabling interruption 2020-06-26 11:18:38 -05:00
sx9500 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
th02 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
ti_hdc zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
tmp007 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
tmp112 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
tmp116 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
vl53l0x zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
wsen_itds drivers: sensors: itds: Add support for WSEN-ITDS 3-axis accel sensor 2020-07-20 12:45:56 +02:00
CMakeLists.txt sensor: shell: Add a 'battery' command 2020-07-23 12:12:09 -04:00
Kconfig sensor: shell: Add a 'battery' command 2020-07-23 12:12:09 -04:00
sensor_handlers.c drivers: sensor: add api function for getting a sensor attribute 2020-06-17 17:13:14 +02:00
sensor_shell.c sensor: shell: Show the error code when reading fails 2020-07-23 12:12:09 -04:00
shell_battery.c sensor: shell: Add a 'battery' command 2020-07-23 12:12:09 -04:00