Home
last modified time | relevance | path

Searched +full:proximity +full:- +full:trigger (Results 1 – 21 of 21) sorted by relevance

/Zephyr-latest/samples/sensor/vcnl4040/
DREADME.rst1 .. zephyr:code-sample:: vcml4040
2 :name: VCNL4040 Proximity and Ambient Light Sensor
3 :relevant-api: sensor_interface
5 Get proximity and ambient light data from a VCNL4040 sensor (polling & trigger mode).
10 This sample periodically measures proximity and light for
11 5 sec in the interval of 300msec in polling mode. Then threshold trigger mode
24 - VCNL4040: https://www.vishay.com/docs/84274/vcnl4040.pdf
32 .. zephyr-app-commands::
33 :zephyr-app: samples/sensor/vcnl4040/
40 .. code-block:: console
[all …]
/Zephyr-latest/drivers/sensor/sx9500/
DKconfig1 # SX9500 SAR proximity sensor configuration options
4 # SPDX-License-Identifier: Apache-2.0
7 bool "SX9500 I2C SAR Proximity Chip"
12 Enable driver for SX9500 I2C-based SAR proximity sensor.
17 int "Proximity channel to use"
20 The SX9500 offers 4 separate proximity channels. Choose which one
24 prompt "SX9500 trigger mode"
28 bool "No trigger"
32 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_SEMTECH_SX9500),int-gpios)
38 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_SEMTECH_SX9500),int-gpios)
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
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()
68 return -ENOTSUP; in sx9500_channel_get()
[all …]
/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()
80 printf("trigger handler: unknown trigger type.\n"); 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()
115 printf("cannot set trigger.\n"); in test_trigger_mode()
[all …]
/Zephyr-latest/drivers/sensor/apds9960/
DKconfig3 # SPDX-License-Identifier: Apache-2.0
16 prompt "Trigger mode"
22 bool "No trigger"
27 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_AVAGO_APDS9960),int-gpios)
42 prompt "Proximity Gain"
78 prompt "Proximity Pulse Length"
96 prompt "Proximity LED boost current"
114 int "Proximity Pulse Count"
/Zephyr-latest/dts/bindings/sensor/
Dvishay,vcnl4040.yaml2 # SPDX-License-Identifier: Apache-2.0
5 VCNL4040 proximity and ambient light sensor. See datasheet at
10 include: [sensor-device.yaml, i2c-device.yaml]
13 int-gpios:
14 type: phandle-array
18 triggered. The sensor generates an active-low level signal
21 led-current:
27 - 50
28 - 75
29 - 100
[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/apds9960/
DREADME.rst1 .. zephyr:code-sample:: apds9960
3 :relevant-api: sensor_interface
5 Get ambient light, RGB, and proximity/gesture data from an APDS9960 sensor.
11 ambient light, RGB, and proximity (or gesture) data. This sample checks the
12 sensor in polling mode (without an interrupt trigger).
21 .. zephyr-app-commands::
22 :zephyr-app: samples/sensor/apds9960
30 .. code-block:: console
32 ambient light intensity without trigger is 387
33 proxy without trigger is 115
[all …]
Dsample.yaml8 - reel_board
11 - i2c
12 - gpio
17 - "APDS9960 sample application"
18 - "ambient light intensity (.*), proximity (.*)"
20 sample.sensor.apds9960.trigger:
24 - reel_board
27 - i2c
28 - gpio
30 - CONFIG_APDS9960_TRIGGER_GLOBAL_THREAD=y
[all …]
/Zephyr-latest/drivers/sensor/vishay/vcnl36825t/
DKconfig1 # VCNL36825T Proximity Sensor configuration options
4 # SPDX-License-Identifier: Apache-2.0
7 bool "VCNL36825T Proximity Sensor"
20 prompt "trigger mode"
28 bool "no trigger"
Dvcnl36825t.c4 * SPDX-License-Identifier: Apache-2.0
69 const struct vcnl36825t_config *config = dev->config; in vcnl36825t_pm_action()
70 struct vcnl36825t_data *data = dev->data; in vcnl36825t_pm_action()
76 rc = vcnl36825t_update(&config->i2c, VCNL36825T_REG_PS_CONF1, VCNL36825T_PS_ON_MSK, in vcnl36825t_pm_action()
82 if (config->low_power) { in vcnl36825t_pm_action()
83 rc = vcnl36825t_update(&config->i2c, VCNL36825T_REG_PS_CONF4, in vcnl36825t_pm_action()
90 if (config->operation_mode == VCNL36825T_OPERATION_MODE_AUTO) { in vcnl36825t_pm_action()
91 rc = vcnl36825t_update(&config->i2c, VCNL36825T_REG_PS_CONF3, in vcnl36825t_pm_action()
100 rc = vcnl36825t_update(&config->i2c, VCNL36825T_REG_PS_CONF2, VCNL36825T_PS_ST_MSK, in vcnl36825t_pm_action()
106 data->meas_timeout_us = data->meas_timeout_wakeup_us; in vcnl36825t_pm_action()
[all …]
/Zephyr-latest/drivers/sensor/vishay/vcnl4040/
DKconfig1 # VCNL4040 Proximity and Ambient Light Sensor configuration options
4 # SPDX-License-Identifier: Apache-2.0
7 bool "VCNL4040 Proximity and Ambient Light Sensor"
25 prompt "Trigger mode"
31 bool "No trigger"
36 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_VISHAY_VCNL4040),int-gpios)
42 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_VISHAY_VCNL4040),int-gpios)
/Zephyr-latest/samples/sensor/vcnl4040/boards/
Dadafruit_feather_stm32f405.overlay4 * SPDX-License-Identifier: Apache-2.0
11 int-gpios = <&feather_header 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
12 led-current = <200>;
13 led-duty-cycle = <320>;
14 proximity-it = "8";
15 proximity-trigger = "close";
16 als-it = <640>;
/Zephyr-latest/samples/boards/96boards/argonkey/sensors/
DREADME.rst1 .. zephyr:code-sample:: argonkey_sensors
10 It makes use of both the trigger and poll methods.
18 - mezzanine mode, plugging the ArgonKey to HiKey board through its 96Board
19 low-speed connector
20 - standalone mode, supplying 5V directly on P1 connector
29 .. code-block:: c
35 printk("%s: device not ready.\n", hum_dev->name);
43 - :ref:`96b_argonkey`
48 .. zephyr-app-commands::
49 :zephyr-app: samples/boards/96boards/argonkey/sensors
[all …]
/Zephyr-latest/samples/sensor/apds9960/src/
Dmain.c5 * SPDX-License-Identifier: Apache-2.0
18 const struct sensor_trigger *trigger) in trigger_handler() argument
21 ARG_UNUSED(trigger); in trigger_handler()
57 printk("Could not set trigger\n"); in main()
76 printk("ambient light intensity %d, proximity %d\n", in main()
/Zephyr-latest/samples/sensor/fdc2x1x/
DREADME.rst1 .. zephyr:code-sample:: fdc2x1x
2 :name: FDC2X1X Capacitance-to-Digital Converter
3 :relevant-api: sensor_interface
5 Get capacitance and frequency data from a FDC2X1X sensor (polling & trigger).
11 FDC2X1X sensor in polling mode or optionally with data ready trigger. It is able
12 to read the 12-Bit and 28-Bit, as well as the 2-Channel and 4-Channel versions
13 (FDC2112, FDC2114, FDC2212, FDC2214). The 4-channel versions are chosen through
14 devicetree properties. The default in this sample is the 2-channel version.
16 Capacitive sensing is a low-power, low-cost, high-resolution contactless sensing
17 technique that can be applied to a variety of applications ranging from proximity
[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.4.rst33 * CVE-2020-10060: UpdateHub Might Dereference An Uninitialized Pointer
34 * CVE-2020-10064: Improper Input Frame Validation in ieee802154 Processing
35 * CVE-2020-10066: Incorrect Error Handling in Bluetooth HCI core
36 * CVE-2020-10072: all threads can access all socket file descriptors
37 * CVE-2020-13598: FS: Buffer Overflow when enabling Long File Names in FAT_FS and calling fs_stat
38 * CVE-2020-13599: Security problem with settings and littlefs
39 * CVE-2020-13601: Under embargo until 2020/11/18
40 * CVE-2020-13602: Remote Denial of Service in LwM2M do_write_op_tlv
50 <https://github.com/zephyrproject-rtos/zephyr/issues?q=is%3Aissue+is%3Aopen+label%3Abug>`_.
62 * The :c:func:`wdt_feed` function will now return ``-EAGAIN`` if
[all …]
Drelease-notes-2.5.rst27 * CVE-2021-3323: Under embargo until 2021-04-14
28 * CVE-2021-3321: Under embargo until 2021-04-14
29 * CVE-2021-3320: Under embargo until 2021-04-14
39 <https://github.com/zephyrproject-rtos/zephyr/issues?q=is%3Aissue+is%3Aopen+label%3Abug>`_.
56 * Changed vcnl4040 dts binding default for property 'proximity-trigger'.
63 * The :c:func:`mqtt_keepalive_time_left` function now returns -1 if keep alive
67 timeout usage must use the new-style k_timeout_t type and not the
87 GPIO-only regulators a devicetree property ``supply-gpios`` is defined as a
101 * ARM Musca-A board and SoC support deprecated and planned to be removed in 2.6.0.
146 sys_heap/k_heaps. Note that the new-style heap is a general
[all …]
Drelease-notes-3.1.rst61 * Split CAN classic and CAN-FD APIs:
90 was moved from Kconfig to :ref:`devicetree <dt-guide>`.
91 See the :dtcompatible:`st,stm32f1-pinctrl` devicetree binding for more information.
182 * MIPI-DSI
184 * Added a :ref:`MIPI-DSI api <mipi_dsi_api>`. This is an experimental API,
196 * Added support for enabling/disabling CAN-FD mode at runtime using :c:macro:`CAN_MODE_FD`.
220 * Added support for Provisioners over PB-GATT
231 * Implemented ISO-AL TX unframed fragmentation
232 * Added support for back-to-back receiving of PDUs on nRF5x platforms
249 newly created informational-only callback struct :c:struct:`bt_conn_auth_info_cb`.
[all …]