Home
last modified time | relevance | path

Searched +full:int +full:- +full:proximity +full:- +full:count (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:
20 type: int
22 description: Proximity detection gain of the sensor
[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:
27 type: int
34 - [10, 80] ms only if low power mode is inactive
[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/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"
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()
49 static int apds9960_sample_fetch(const struct device *dev, in apds9960_sample_fetch()
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()
[all …]
/Zephyr-latest/samples/bluetooth/central_gatt_write/src/
Dcentral_gatt_write.c4 * SPDX-License-Identifier: Apache-2.0
15 extern int mtu_exchange(struct bt_conn *conn);
16 extern int write_cmd(struct bt_conn *conn);
26 int err; in device_found()
30 dev, type, ad->len, rssi); in device_found()
38 /* connect only to devices in close proximity */ in device_found()
39 if (rssi < -50) { in device_found()
61 int err; in start_scan()
82 uint32_t central_gatt_write(uint32_t count) in central_gatt_write() argument
84 int err; in central_gatt_write()
[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/samples/boards/phytec/reel_board/mesh_badge/src/
Dreel_board.c5 * SPDX-License-Identifier: Apache-2.0
74 static size_t print_line(enum font_size font_size, int row, const char *text, in print_line()
79 int pad; in print_line()
88 pad = (fonts[font_size].columns - len) / 2U; in print_line()
124 return space - text; in get_len()
137 int i; in board_show_text()
174 [0 ... (STAT_COUNT - 1)] = {
182 #define NO_UPDATE -1
184 static int add_hello(uint16_t addr, const char *name) in add_hello()
186 int i; in add_hello()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dgmap_ugg_test.c2 * Copyright (c) 2023-2024 Nordic Semiconductor ASA
4 * SPDX-License-Identifier: Apache-2.0
45 * required to place the AUX_ADV_IND PDUs in a non-overlapping interval with the
196 int err; in stream_started_cb()
223 int err; in stream_stopped_cb()
252 static void cap_discovery_complete_cb(struct bt_conn *conn, int err, in cap_discovery_complete_cb()
277 static void unicast_start_complete_cb(int err, struct bt_conn *conn) in unicast_start_complete_cb()
288 static void unicast_update_complete_cb(int err, struct bt_conn *conn) in unicast_update_complete_cb()
299 static void unicast_stop_complete_cb(int err, struct bt_conn *conn) in unicast_stop_complete_cb()
356 static void bap_discover_cb(struct bt_conn *conn, int err, enum bt_audio_dir dir) in bap_discover_cb()
[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/samples/bluetooth/bap_unicast_client/src/
Dmain.c2 * Copyright (c) 2021-2024 Nordic Semiconductor ASA
4 * SPDX-License-Identifier: Apache-2.0
80 while (len-- != 0) { in print_hex()
89 printk("%s: type 0x%02x value_len %u\n", str, data->type, data->data_len); in print_cb()
90 print_hex(data->data, data->data_len); in print_cb()
98 printk("codec id 0x%02x cid 0x%04x vid 0x%04x count %u\n", codec_cap->id, codec_cap->cid, in print_codec_cap()
99 codec_cap->vid, codec_cap->data_len); in print_codec_cap()
101 if (codec_cap->id == BT_HCI_CODING_FORMAT_LC3) { in print_codec_cap()
102 bt_audio_data_parse(codec_cap->data, codec_cap->data_len, print_cb, "data"); in print_codec_cap()
105 print_hex(codec_cap->data, codec_cap->data_len); in print_codec_cap()
[all …]
/Zephyr-latest/doc/releases/
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
71 parameter, allowing to specify the maximum retransmission count of 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.
[all …]