Home
last modified time | relevance | path

Searched +full:proximity +full:- +full:gain (Results 1 – 13 of 13) 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/drivers/sensor/apds9960/
DKconfig3 # SPDX-License-Identifier: Apache-2.0
27 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_AVAGO_APDS9960),int-gpios)
42 prompt "Proximity Gain"
60 prompt "ALS and Color Gain"
78 prompt "Proximity Pulse Length"
96 prompt "Proximity LED boost current"
114 int "Proximity Pulse Count"
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 …]
Dapds9960.h5 * SPDX-License-Identifier: Apache-2.0
53 /* Proximity Gain (PGAIN) values */
58 /* ALS Gain (AGAIN) values */
120 /* Gesture Gain (GGAIN) values */
246 gpio_pin_interrupt_configure_dt(&cfg->int_gpio, flags); in apds9960_setup_int()
/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/drivers/sensor/ams/tmd2620/
Dtmd2620.h4 * SPDX-License-Identifier: Apache-2.0
19 /* PRATE register defines the time between proximity measurements
35 * If the value generated by the proximity channel is below the
42 * If the value generated by the proximity channel is above the
73 /* proximity gain control */
92 /* PDATA contains the 1-byte proximity data */
164 gpio_pin_interrupt_configure_dt(&config->int_gpio, flags); in tmd2620_setup_int()
Dtmd2620.c4 * SPDX-License-Identifier: Apache-2.0
32 tmd2620_setup_int(data->dev->config, false); in tmd2620_gpio_callback()
35 k_work_submit(&data->work); in tmd2620_gpio_callback()
37 k_sem_give(&data->data_sem); in tmd2620_gpio_callback()
43 struct tmd2620_data *data = dev->data; in tmd2620_configure_interrupt()
44 const struct tmd2620_config *config = dev->config; in tmd2620_configure_interrupt()
49 if (!gpio_is_ready_dt(&config->int_gpio)) { in tmd2620_configure_interrupt()
51 return -ENODEV; in tmd2620_configure_interrupt()
54 ret = gpio_pin_configure_dt(&config->int_gpio, GPIO_INPUT); in tmd2620_configure_interrupt()
60 gpio_init_callback(&data->gpio_cb, tmd2620_gpio_callback, BIT(config->int_gpio.pin)); in tmd2620_configure_interrupt()
[all …]
/Zephyr-latest/drivers/sensor/sx9500/
Dsx9500.c1 /* sensor_sx9500.c - Driver for Semtech SX9500 SAR proximity chip */
6 * SPDX-License-Identifier: Apache-2.0
28 * auto-increments the address for subsequent values in a single
34 0x77, /* x8 gain, 167kHz frequency, finest resolution. */
40 0x0e, /* Proximity detection threshold: 280 */
42 * independently, proximity hysteresis: 32, close
51 struct sx9500_data *data = dev->data; in sx9500_sample_fetch()
52 const struct sx9500_config *cfg = dev->config; in sx9500_sample_fetch()
56 return i2c_reg_read_byte_dt(&cfg->i2c, SX9500_REG_STAT, &data->prox_stat); in sx9500_sample_fetch()
63 struct sx9500_data *data = (struct sx9500_data *) dev->data; in sx9500_channel_get()
[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 …]
/Zephyr-latest/include/zephyr/drivers/
Dsensor.h10 * SPDX-License-Identifier: Apache-2.0
42 * and can be obtained using the formula val1 + val2 * 10^(-6). Negative
47 * -0.5: val1 = 0, val2 = -500000
48 * -1.0: val1 = -1, val2 = 0
49 * -1.5: val1 = -1, val2 = -500000
54 /** Fractional part of the value (in one-millionth parts). */
93 * Proximity. Adimensional. A value of 1 indicates that an
101 /** Illuminance in infra-red spectrum, in lux. */
112 /** 1.0 micro-meters Particulate Matter, in ug/m^3 */
114 /** 2.5 micro-meters Particulate Matter, in ug/m^3 */
[all …]
/Zephyr-latest/doc/releases/
Drelease-notes-3.6.rst12 * New :ref:`GNSS subsystem <gnss_api>` added, enabling geo-awareness in Zephyr applications.
13 * New API and drivers introduced for interfacing with :ref:`keyboard matrices <gpio-kbd>`.
16 * Integrated Trusted Firmware-M (TF-M) 2.0, including an update to Mbed TLS 3.5.2.
23 * Over 30 new supported boards, spanning all Zephyr-supported architectures.
37 * CVE-2023-5779 `Zephyr project bug tracker GHSA-7cmj-963q-jj47
38 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-7cmj-963q-jj47>`_
40 * CVE-2023-6249 `Zephyr project bug tracker GHSA-32f5-3p9h-2rqc
41 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-32f5-3p9h-2rqc>`_
43 * CVE-2023-6749 `Zephyr project bug tracker GHSA-757h-rw37-66hw
44 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-757h-rw37-66hw>`_
[all …]
Drelease-notes-2.0.rst12 * The kernel now supports both 32- and 64-bit architectures.
17 * We added support for :ref:`Point-to-Point Protocol (PPP) <ppp>`. PPP is a
20 * We added support for UpdateHub, an end-to-end solution for large scale
21 over-the-air device updates.
22 * We added support for ARM Cortex-R Architecture (Experimental).
32 * Fixes CVE-2019-9506: The Bluetooth BR/EDR specification up to and
35 negotiation. This allows practical brute-force attacks (aka "KNOB")
42 * New kernel API for per-thread disabling of Floating Point Services for
43 ARC, ARM Cortex-M, and x86 architectures.
45 * Additional support for compatibility with 64-bit architectures.
[all …]