Home
last modified time | relevance | path

Searched refs:SENSOR_CHAN_LIGHT (Results 1 – 25 of 26) sorted by relevance

12

/Zephyr-latest/samples/sensor/max44009/src/
Dmain.c32 if (sensor_sample_fetch_chan(dev, SENSOR_CHAN_LIGHT) != 0) { in main()
37 if (sensor_channel_get(dev, SENSOR_CHAN_LIGHT, &val) != 0) { in main()
/Zephyr-latest/samples/sensor/isl29035/src/
Dmain.c58 if (sensor_channel_get(dev, SENSOR_CHAN_LIGHT, &val) < 0) { in process_sample()
82 rc = sensor_attr_set(dev, SENSOR_CHAN_LIGHT, in process_sample()
85 rc = sensor_attr_set(dev, SENSOR_CHAN_LIGHT, in process_sample()
/Zephyr-latest/drivers/sensor/ams/tsl2540/
Dtsl2540.c33 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL || chan == SENSOR_CHAN_LIGHT || in tsl2540_sample_fetch()
37 if (chan == SENSOR_CHAN_ALL || chan == SENSOR_CHAN_LIGHT) { in tsl2540_sample_fetch()
86 case SENSOR_CHAN_LIGHT: in tsl2540_channel_get()
159 if ((chan != SENSOR_CHAN_IR) & (chan != SENSOR_CHAN_LIGHT)) { in tsl2540_attr_set()
173 if (chan == SENSOR_CHAN_LIGHT) { in tsl2540_attr_set()
282 tsl2540_attr_set(dev, (enum sensor_channel)SENSOR_CHAN_LIGHT, in tsl2540_setup()
287 tsl2540_attr_set(dev, (enum sensor_channel)SENSOR_CHAN_LIGHT, in tsl2540_setup()
Dtsl2540_trigger.c119 if (trig->chan != SENSOR_CHAN_LIGHT) { in tsl2540_trigger_set()
/Zephyr-latest/drivers/sensor/maxim/max44009/
Dmax44009.c80 if (chan != SENSOR_CHAN_LIGHT) { in max44009_attr_set()
120 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL || chan == SENSOR_CHAN_LIGHT); in max44009_sample_fetch()
147 if (chan != SENSOR_CHAN_LIGHT) { in max44009_channel_get()
/Zephyr-latest/samples/sensor/grove_light/src/
Dmain.c33 sensor_channel_get(dev, SENSOR_CHAN_LIGHT, &lux); in main()
/Zephyr-latest/drivers/sensor/ltrf216a/
Dltrf216a.c86 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL || chan == SENSOR_CHAN_LIGHT); in ltrf216a_sample_fetch()
120 if (chan != SENSOR_CHAN_LIGHT) { in ltrf216a_channel_get()
/Zephyr-latest/drivers/sensor/apds9306/
Dapds9306.c143 if (channel != SENSOR_CHAN_LIGHT) { in apds9306_attr_set()
179 if (channel != SENSOR_CHAN_LIGHT) { in apds9306_attr_get()
214 if ((channel != SENSOR_CHAN_ALL) && (channel != SENSOR_CHAN_LIGHT)) { in apds9306_sample_fetch()
255 if (channel != SENSOR_CHAN_LIGHT) { in apds9306_channel_get()
/Zephyr-latest/drivers/sensor/ti/opt3001/
Dopt3001.c70 __ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL || chan == SENSOR_CHAN_LIGHT); in opt3001_sample_fetch()
90 if (chan != SENSOR_CHAN_LIGHT) { in opt3001_channel_get()
/Zephyr-latest/drivers/sensor/vishay/vcnl4040/
Dvcnl4040.c62 chan == SENSOR_CHAN_LIGHT); in vcnl4040_sample_fetch()
77 if (chan == SENSOR_CHAN_ALL || chan == SENSOR_CHAN_LIGHT) { in vcnl4040_sample_fetch()
107 case SENSOR_CHAN_LIGHT: in vcnl4040_channel_get()
Dvcnl4040_trigger.c151 if (chan == SENSOR_CHAN_LIGHT) { in vcnl4040_attr_set()
214 } else if (trig->chan == SENSOR_CHAN_LIGHT) { in vcnl4040_trigger_set()
/Zephyr-latest/samples/sensor/apds9960/src/
Dmain.c73 sensor_channel_get(dev, SENSOR_CHAN_LIGHT, &intensity); in main()
/Zephyr-latest/drivers/sensor/vishay/veml7700/
Dveml7700.c358 if (chan != SENSOR_CHAN_LIGHT) { in veml7700_attr_set()
406 if (chan != SENSOR_CHAN_LIGHT) { in veml7700_attr_get()
458 if ((chan == SENSOR_CHAN_LIGHT || chan == SENSOR_CHAN_ALL) && in veml7700_sample_fetch()
466 if (chan == SENSOR_CHAN_LIGHT) { in veml7700_sample_fetch()
500 if (chan == SENSOR_CHAN_LIGHT) { in veml7700_channel_get()
/Zephyr-latest/drivers/sensor/rohm/bh1750/
Dbh1750.c132 chan != SENSOR_CHAN_LIGHT) { in bh1750_sample_fetch()
170 chan != SENSOR_CHAN_LIGHT) { in bh1750_channel_get()
/Zephyr-latest/drivers/sensor/ams/tsl2591/
Dtsl2591.c97 case SENSOR_CHAN_LIGHT: in tsl2591_sample_fetch()
122 bool vis_saturated = (chan == SENSOR_CHAN_ALL || chan == SENSOR_CHAN_LIGHT) && in tsl2591_sample_fetch()
163 case SENSOR_CHAN_LIGHT: in tsl2591_channel_get()
377 if (chan == SENSOR_CHAN_LIGHT) { in tsl2591_attr_set()
Dtsl2591_trigger.c92 if (trig->chan != SENSOR_CHAN_LIGHT) { in tsl2591_trigger_set()
/Zephyr-latest/samples/sensor/vcnl4040/src/
Dmain.c36 if (sensor_channel_get(dev, SENSOR_CHAN_LIGHT, &val) < 0) { in print_als_data()
/Zephyr-latest/samples/boards/phytec/reel_board/mesh_badge/src/
Dperiphs.c67 SENSOR_CHAN_LIGHT, &val[0])) { in get_apds9960_val()
/Zephyr-latest/drivers/sensor/renesas/isl29035/
Disl29035.h53 #define ISL29035_ACTIVE_CHAN SENSOR_CHAN_LIGHT
/Zephyr-latest/drivers/sensor/ams/tsl2561/
Dtsl2561.c141 if (chan != SENSOR_CHAN_ALL && chan != SENSOR_CHAN_LIGHT) { in tsl2561_sample_fetch()
190 if (chan != SENSOR_CHAN_ALL && chan != SENSOR_CHAN_LIGHT) { in tsl2561_channel_get()
/Zephyr-latest/tests/drivers/sensor/generic/src/
Ddummy_sensor.c40 case SENSOR_CHAN_LIGHT: in dummy_sensor_channel_get()
Dmain.c32 { SENSOR_CHAN_LIGHT, { 0, 0 } },
/Zephyr-latest/drivers/sensor/ams/tcs3400/
Dtcs3400.c150 case SENSOR_CHAN_LIGHT: in tcs3400_channel_get()
/Zephyr-latest/drivers/sensor/apds9960/
Dapds9960.c126 case SENSOR_CHAN_LIGHT: in apds9960_channel_get()
/Zephyr-latest/include/zephyr/drivers/
Dsensor.h100 SENSOR_CHAN_LIGHT, enumerator

12