Searched refs:SENSOR_CHAN_CURRENT (Results 1 – 17 of 17) sorted by relevance
/Zephyr-latest/samples/sensor/ina219/src/ |
D | main.c | 32 sensor_channel_get(ina, SENSOR_CHAN_CURRENT, ¤t); in main()
|
/Zephyr-latest/tests/drivers/sensor/adltc2990/src/ |
D | main.c | 31 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/ |
D | current_amp.c | 30 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/ |
D | ina219.c | 114 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/ |
D | ina226.c | 112 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/ |
D | ina230.c | 44 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()
|
D | ina237.c | 57 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/ |
D | ina3221.c | 165 } 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/ |
D | ina230_test.c | 80 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/ |
D | fuel_gauge_composite.c | 85 rc = composite_read_micro(config->battery_current, SENSOR_CHAN_CURRENT, in composite_get_prop()
|
/Zephyr-latest/samples/sensor/ccs811/src/ |
D | main.c | 60 sensor_channel_get(dev, SENSOR_CHAN_CURRENT, ¤t); in do_fetch()
|
/Zephyr-latest/tests/drivers/sensor/ina237/src/ |
D | ina237_test.c | 93 zassert_ok(sensor_channel_get(fixture->dev, SENSOR_CHAN_CURRENT, &sensor_val)); in test_current()
|
/Zephyr-latest/drivers/sensor/adi/adltc2990/ |
D | adltc2990.c | 280 case SENSOR_CHAN_CURRENT: { in adltc2990_sample_fetch() 462 case SENSOR_CHAN_CURRENT: { in adltc2990_channel_get()
|
/Zephyr-latest/drivers/sensor/nordic/npm1300_charger/ |
D | npm1300_charger.c | 390 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/ |
D | ccs811.c | 289 case SENSOR_CHAN_CURRENT: in ccs811_channel_get()
|
/Zephyr-latest/include/zephyr/drivers/ |
D | sensor.h | 137 SENSOR_CHAN_CURRENT, enumerator
|
/Zephyr-latest/drivers/sensor/ |
D | sensor_shell.c | 82 [SENSOR_CHAN_CURRENT] = "current",
|