Home
last modified time | relevance | path

Searched refs:SENSOR_CHAN_CURRENT (Results 1 – 17 of 17) sorted by relevance

/Zephyr-latest/samples/sensor/ina219/src/
Dmain.c32 sensor_channel_get(ina, SENSOR_CHAN_CURRENT, &current); in main()
/Zephyr-latest/tests/drivers/sensor/adltc2990/src/
Dmain.c31 zassert_ok(sensor_sample_fetch_chan(fixture->dev, SENSOR_CHAN_CURRENT)); \
32 zassert_ok(sensor_channel_get(fixture->dev, SENSOR_CHAN_CURRENT, sensor_val)); \
88 zassert_equal(-EINVAL, sensor_channel_get(fixture->dev, SENSOR_CHAN_CURRENT, value)); in ZTEST_F()
128 zassert_equal(0, sensor_sample_fetch_chan(fixture->dev, SENSOR_CHAN_CURRENT)); in ZTEST_F()
129 zassert_equal(0, sensor_channel_get(fixture->dev, SENSOR_CHAN_CURRENT, value)); in ZTEST_F()
381 zassert_equal(-EINVAL, sensor_sample_fetch_chan(fixture->dev, SENSOR_CHAN_CURRENT)); in ZTEST_F()
506 zassert_equal(-EINVAL, sensor_channel_get(fixture->dev, SENSOR_CHAN_CURRENT, current)); in ZTEST_F()
/Zephyr-latest/drivers/sensor/current_amp/
Dcurrent_amp.c30 if ((chan != SENSOR_CHAN_CURRENT) && (chan != SENSOR_CHAN_ALL)) { in fetch()
52 if (chan != SENSOR_CHAN_CURRENT) { in get()
/Zephyr-latest/drivers/sensor/ti/ina219/
Dina219.c114 chan != SENSOR_CHAN_CURRENT) { in ina219_sample_fetch()
173 chan == SENSOR_CHAN_CURRENT) { in ina219_sample_fetch()
202 case SENSOR_CHAN_CURRENT: in ina219_channel_get()
/Zephyr-latest/drivers/sensor/ti/ina226/
Dina226.c112 case SENSOR_CHAN_CURRENT: in ina226_channel_get()
147 if ((data->chan == SENSOR_CHAN_ALL) || (data->chan == SENSOR_CHAN_CURRENT)) { in ina226_read_data()
181 && chan != SENSOR_CHAN_CURRENT && chan != SENSOR_CHAN_POWER in ina226_sample_fetch()
/Zephyr-latest/drivers/sensor/ti/ina23x/
Dina230.c44 case SENSOR_CHAN_CURRENT: in ina230_channel_get()
75 if (chan != SENSOR_CHAN_ALL && chan != SENSOR_CHAN_VOLTAGE && chan != SENSOR_CHAN_CURRENT && in ina230_sample_fetch()
88 if ((chan == SENSOR_CHAN_ALL) || (chan == SENSOR_CHAN_CURRENT)) { in ina230_sample_fetch()
Dina237.c57 case SENSOR_CHAN_CURRENT: in ina237_channel_get()
156 if ((data->chan == SENSOR_CHAN_ALL) || (data->chan == SENSOR_CHAN_CURRENT)) { in ina237_read_data()
203 if (chan != SENSOR_CHAN_ALL && chan != SENSOR_CHAN_VOLTAGE && chan != SENSOR_CHAN_CURRENT && in ina237_sample_fetch()
/Zephyr-latest/drivers/sensor/ti/ina3221/
Dina3221.c165 } else if (chan == SENSOR_CHAN_CURRENT) { in ina3221_sample_fetch()
211 chan == SENSOR_CHAN_CURRENT) { in ina3221_sample_fetch()
234 case SENSOR_CHAN_CURRENT: in ina3221_channel_get()
/Zephyr-latest/tests/drivers/sensor/ina230/src/
Dina230_test.c80 zassert_ok(sensor_channel_get(fixture->dev, SENSOR_CHAN_CURRENT, &sensor_val)); in test_datasheet_example()
134 zassert_ok(sensor_channel_get(fixture->dev, SENSOR_CHAN_CURRENT, &sensor_val)); in test_current()
/Zephyr-latest/drivers/fuel_gauge/composite/
Dfuel_gauge_composite.c85 rc = composite_read_micro(config->battery_current, SENSOR_CHAN_CURRENT, in composite_get_prop()
/Zephyr-latest/samples/sensor/ccs811/src/
Dmain.c60 sensor_channel_get(dev, SENSOR_CHAN_CURRENT, &current); in do_fetch()
/Zephyr-latest/tests/drivers/sensor/ina237/src/
Dina237_test.c93 zassert_ok(sensor_channel_get(fixture->dev, SENSOR_CHAN_CURRENT, &sensor_val)); in test_current()
/Zephyr-latest/drivers/sensor/adi/adltc2990/
Dadltc2990.c280 case SENSOR_CHAN_CURRENT: { in adltc2990_sample_fetch()
462 case SENSOR_CHAN_CURRENT: { in adltc2990_channel_get()
/Zephyr-latest/drivers/sensor/nordic/npm1300_charger/
Dnpm1300_charger.c390 case SENSOR_CHAN_CURRENT: in npm1300_charger_attr_get()
476 case SENSOR_CHAN_CURRENT: in npm1300_charger_attr_set()
/Zephyr-latest/drivers/sensor/ams/ccs811/
Dccs811.c289 case SENSOR_CHAN_CURRENT: in ccs811_channel_get()
/Zephyr-latest/include/zephyr/drivers/
Dsensor.h137 SENSOR_CHAN_CURRENT, enumerator
/Zephyr-latest/drivers/sensor/
Dsensor_shell.c82 [SENSOR_CHAN_CURRENT] = "current",