Home
last modified time | relevance | path

Searched +full:proximity +full:- +full:low +full:- +full:threshold (Results 1 – 8 of 8) sorted by relevance

/Zephyr-latest/dts/bindings/sensor/
Dams,tmd2620.yaml2 # SPDX-License-Identifier: Apache-2.0
4 description: OSRAM ams TMD2620 Proximity Sensor
8 include: [sensor-device.yaml, i2c-device.yaml]
11 int-gpios:
12 type: phandle-array
15 The interrupt pin of TMD2620 is open-drain, active low.
17 as pull-up, active low.
19 proximity-gain:
22 description: Proximity detection gain of the sensor
24 - 1
[all …]
Dvishay,vcnl36825t.yaml2 # SPDX-License-Identifier: Apache-2.0
5 VCNL36825T proximity and ambient light sensor. See datasheet at
10 include: [sensor-device.yaml, i2c-device.yaml]
13 operation-mode:
19 - "auto": the sensor performs sampling continuously,
20 - "force": the sampling is performed on every fetch command.
24 Note: "force"-mode only available if low-power mode inactive.
26 measurement-period:
34 - [10, 80] ms only if low power mode is inactive
35 - [80, 320] ms only in low power mode
[all …]
/Zephyr-latest/samples/sensor/proximity_polling/boards/
Dnrf52840dk_nrf52840.overlay3 prox-sensor0 = &tmd2620;
13 int-gpios = <&gpio1 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
14 proximity-gain = <4>;
15 proximity-pulse-length = <16>;
16 proximity-pulse-count = <15>;
17 proximity-high-threshold = <255>;
18 proximity-low-threshold = <0>;
19 proximity-led-drive-strength = <4>;
20 proximity-interrupt-filter = <0>;
21 wait-time-factor = <0>;
/Zephyr-latest/samples/sensor/vcnl4040/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
25 printf("Cannot read proximity data.\n"); in print_proxy_data()
29 printf("Proximity: %d\n", (uint16_t) pdata.val1); in print_proxy_data()
61 remaining_test_time -= SLEEPTIME; in test_polling_mode()
69 switch (trig->type) { in trigger_handler()
92 printf("Testing proximity trigger.\n"); in test_trigger_mode()
99 printf("cannot set proximity high threshold.\n"); in test_trigger_mode()
107 printf("cannot set proximity low threshold.\n"); in test_trigger_mode()
126 printf("Threshold trigger test finished.\n"); in test_trigger_mode()
/Zephyr-latest/drivers/sensor/ams/tmd2620/
Dtmd2620.h4 * SPDX-License-Identifier: Apache-2.0
19 /* PRATE register defines the time between proximity measurements
34 * PILT Register defines the low interrupt threshold.
35 * If the value generated by the proximity channel is below the
36 * threshold, PPERS value is reached and PIEN is enabled, the INT pin will be asserted
41 * PILT Register defines the high interrupt threshold.
42 * If the value generated by the proximity channel is above the
43 * threshold, PPERS value is reached and PIEN is enabled, the INT pin will be asserted
50 * the threshold have to be generated until a interrupt is generated.
73 /* proximity gain control */
[all …]
/Zephyr-latest/samples/sensor/apds9960/src/
Dmain.c5 * SPDX-License-Identifier: Apache-2.0
47 printk("Could not set threshold\n"); in main()
64 printk("Waiting for a threshold event\n"); in main()
76 printk("ambient light intensity %d, proximity %d\n", in main()
81 printk("set low power state for 2s\n"); in main()
/Zephyr-latest/drivers/sensor/apds9960/
Dapds9960.c5 *SPDX-License-Identifier: Apache-2.0
11 * @brief driver for APDS9960 ALS/RGB/gesture/proximity sensor
31 apds9960_setup_int(drv_data->dev->config, false); in apds9960_handle_cb()
34 k_work_submit(&drv_data->work); in apds9960_handle_cb()
36 k_sem_give(&drv_data->data_sem); in apds9960_handle_cb()
52 const struct apds9960_config *config = dev->config; in apds9960_sample_fetch()
53 struct apds9960_data *data = dev->data; in apds9960_sample_fetch()
58 return -ENOTSUP; in apds9960_sample_fetch()
69 if (i2c_reg_update_byte_dt(&config->i2c, in apds9960_sample_fetch()
72 return -EIO; in apds9960_sample_fetch()
[all …]
/Zephyr-latest/tests/drivers/build_all/sensor/
Di2c.dtsi4 * SPDX-License-Identifier: Apache-2.0
9 #include <zephyr/dt-bindings/sensor/lsm6dsv16x.h>
10 #include <zephyr/dt-bindings/sensor/lsm6dso.h>
11 #include <zephyr/dt-bindings/sensor/lsm6dso16is.h>
12 #include <zephyr/dt-bindings/sensor/lps22hh.h>
13 #include <zephyr/dt-bindings/sensor/lps2xdf.h>
14 #include <zephyr/dt-bindings/sensor/lis2ds12.h>
15 #include <zephyr/dt-bindings/sensor/lis2dw12.h>
16 #include <zephyr/dt-bindings/sensor/ism330dhcx.h>
17 #include <zephyr/dt-bindings/sensor/iis2dlpc.h>
[all …]