Home
last modified time | relevance | path

Searched refs:sensor (Results 1 – 25 of 910) sorted by relevance

12345678910>>...37

/Zephyr-latest/drivers/sensor/st/
DKconfig5 source "drivers/sensor/st/hts221/Kconfig"
6 source "drivers/sensor/st/i3g4250d/Kconfig"
7 source "drivers/sensor/st/iis2dh/Kconfig"
8 source "drivers/sensor/st/iis2dlpc/Kconfig"
9 source "drivers/sensor/st/iis2iclx/Kconfig"
10 source "drivers/sensor/st/iis2mdc/Kconfig"
11 source "drivers/sensor/st/iis328dq/Kconfig"
12 source "drivers/sensor/st/iis3dhhc/Kconfig"
13 source "drivers/sensor/st/ism330dhcx/Kconfig"
14 source "drivers/sensor/st/lis2de12/Kconfig"
[all …]
/Zephyr-latest/drivers/sensor/
DKconfig10 Include sensor drivers in system config
15 module-str = sensor
31 Enables the asynchronous sensor API by leveraging the RTIO subsystem.
39 This shell provides access to basic sensor data.
45 Add the 'stream' subcommand to the sensor shell. When run on drivers that
50 int "Stack size for the sensor shell data processing thread"
54 The sensor shell uses a dedicated thread to process data coming from the
67 int "Timeout for printing the average sensor sample value"
71 Control the frequency of the sampling window over which the sensor
75 int "Maximum number of sensor devices that can have enabled triggers in shell"
[all …]
/Zephyr-latest/subsys/sensing/
Dsensor_mgmt.c48 static uint32_t arbitrate_interval(struct sensing_sensor *sensor) in arbitrate_interval() argument
55 for_each_client_conn(sensor, conn) { in arbitrate_interval()
57 sensor->dev->name, conn, conn->interval); in arbitrate_interval()
71 sensor->dev->name, interval); in arbitrate_interval()
76 static int set_arbitrate_interval(struct sensing_sensor *sensor, uint32_t interval) in set_arbitrate_interval() argument
78 struct sensing_submit_config *config = sensor->iodev->data; in set_arbitrate_interval()
82 __ASSERT(sensor && sensor->dev, "set arbitrate interval, sensor or sensor device is NULL"); in set_arbitrate_interval()
85 interval, sensor->dev->name, config->is_streaming); in set_arbitrate_interval()
92 ret = sensor_attr_set(sensor->dev, config->chan, in set_arbitrate_interval()
95 LOG_ERR("%s set attr freq failed:%d", sensor->dev->name, ret); in set_arbitrate_interval()
[all …]
Dsensor_mgmt.h21 #define for_each_sensor(sensor) \ argument
22 STRUCT_SECTION_FOREACH(sensing_sensor, sensor)
24 #define for_each_sensor_reverse(sensor) \ argument
27 for (struct sensing_sensor *sensor = STRUCT_SECTION_END(sensing_sensor) \
29 ({ __ASSERT(sensor >= STRUCT_SECTION_START(sensing_sensor), \
31 sensor >= STRUCT_SECTION_START(sensing_sensor); }); \
32 sensor--)
35 #define for_each_client_conn(sensor, client) \ argument
36 SYS_SLIST_FOR_EACH_CONTAINER(&sensor->client_list, client, snode)
52 int open_sensor(struct sensing_sensor *sensor, struct sensing_connection **conn);
[all …]
Dsensing_sensor.c18 struct sensing_sensor *sensor = (struct sensing_sensor *)iodev_sqe->sqe.userdata; in sensing_iodev_submit() local
19 const struct device *dev = sensor->dev; in sensing_iodev_submit()
38 struct sensing_sensor *sensor = get_sensor_by_dev(dev); in sensing_sensor_get_reporters() local
41 for (i = 0; i < sensor->reporter_num && num < max_handles; ++i) { in sensing_sensor_get_reporters()
42 if (type == sensor->conns[i].source->info->type in sensing_sensor_get_reporters()
44 reporter_handles[num] = &sensor->conns[i]; in sensing_sensor_get_reporters()
54 struct sensing_sensor *sensor = get_sensor_by_dev(dev); in sensing_sensor_get_reporters_count() local
57 for (i = 0; i < sensor->reporter_num; ++i) { in sensing_sensor_get_reporters_count()
58 if (type == sensor->conns[i].source->info->type in sensing_sensor_get_reporters_count()
Ddispatch.c15 static inline bool sensor_test_consume_time(struct sensing_sensor *sensor, in sensor_test_consume_time() argument
20 sensor->dev->name, conn->next_consume_time, cur_time); in sensor_test_consume_time()
25 static void update_client_consume_time(struct sensing_sensor *sensor, in update_client_consume_time() argument
38 static int send_data_to_clients(struct sensing_sensor *sensor, in send_data_to_clients() argument
44 for_each_client_conn(sensor, conn) { in send_data_to_clients()
56 if (!sensor_test_consume_time(sensor, conn, get_us())) { in send_data_to_clients()
60 update_client_consume_time(sensor, conn); in send_data_to_clients()
114 struct sensing_sensor *sensor = cqe.userdata; in dispatch_task() local
116 send_data_to_clients(sensor, data); in dispatch_task()
/Zephyr-latest/drivers/sensor/ti/
DKconfig5 source "drivers/sensor/ti/bq274xx/Kconfig"
6 source "drivers/sensor/ti/fdc2x1x/Kconfig"
7 source "drivers/sensor/ti/ina219/Kconfig"
8 source "drivers/sensor/ti/ina226/Kconfig"
9 source "drivers/sensor/ti/ina23x/Kconfig"
10 source "drivers/sensor/ti/ina3221/Kconfig"
11 source "drivers/sensor/ti/lm95234/Kconfig"
12 source "drivers/sensor/ti/opt3001/Kconfig"
13 source "drivers/sensor/ti/ti_hdc/Kconfig"
14 source "drivers/sensor/ti/ti_hdc20xx/Kconfig"
[all …]
/Zephyr-latest/drivers/sensor/bosch/
DKconfig5 source "drivers/sensor/bosch/bma280/Kconfig"
6 source "drivers/sensor/bosch/bma4xx/Kconfig"
7 source "drivers/sensor/bosch/bmc150_magn/Kconfig"
8 source "drivers/sensor/bosch/bme280/Kconfig"
9 source "drivers/sensor/bosch/bme680/Kconfig"
10 source "drivers/sensor/bosch/bmg160/Kconfig"
11 source "drivers/sensor/bosch/bmi08x/Kconfig"
12 source "drivers/sensor/bosch/bmi160/Kconfig"
13 source "drivers/sensor/bosch/bmi270/Kconfig"
14 source "drivers/sensor/bosch/bmi323/Kconfig"
[all …]
/Zephyr-latest/samples/sensor/i3g4250d/src/
Dmain.c15 static int set_sampling_frequency(const struct device *sensor, double sampling_frequency) in set_sampling_frequency() argument
21 return sensor_attr_set(sensor, in set_sampling_frequency()
25 static void fetch_and_display(const struct device *sensor) in fetch_and_display() argument
29 int rc = sensor_sample_fetch(sensor); in fetch_and_display()
36 rc = sensor_channel_get(sensor, in fetch_and_display()
55 const struct device *const sensor = DEVICE_DT_GET_ONE(st_i3g4250d); in main() local
57 if (!device_is_ready(sensor)) { in main()
58 printf("Sensor %s is not ready\n", sensor->name); in main()
63 set_sampling_frequency(sensor, sampling_frequency); in main()
67 fetch_and_display(sensor); in main()
/Zephyr-latest/drivers/sensor/maxim/
DKconfig5 source "drivers/sensor/maxim/ds18b20/Kconfig"
6 source "drivers/sensor/maxim/ds3231/Kconfig"
7 source "drivers/sensor/maxim/max17055/Kconfig"
8 source "drivers/sensor/maxim/max17262/Kconfig"
9 source "drivers/sensor/maxim/max30101/Kconfig"
10 source "drivers/sensor/maxim/max31790/Kconfig"
11 source "drivers/sensor/maxim/max31855/Kconfig"
12 source "drivers/sensor/maxim/max31865/Kconfig"
13 source "drivers/sensor/maxim/max31875/Kconfig"
14 source "drivers/sensor/maxim/max44009/Kconfig"
[all …]
/Zephyr-latest/drivers/sensor/nxp/
DKconfig5 source "drivers/sensor/nxp/fxas21002/Kconfig"
6 source "drivers/sensor/nxp/fxls8974/Kconfig"
7 source "drivers/sensor/nxp/fxos8700/Kconfig"
8 source "drivers/sensor/nxp/mcux_acmp/Kconfig"
9 source "drivers/sensor/nxp/mcux_lpcmp/Kconfig"
10 source "drivers/sensor/nxp/nxp_kinetis_temp/Kconfig"
11 source "drivers/sensor/nxp/nxp_tempmon/Kconfig"
12 source "drivers/sensor/nxp/p3t1755/Kconfig"
13 source "drivers/sensor/nxp/qdec_mcux/Kconfig"
14 source "drivers/sensor/nxp/qdec_nxp_s32/Kconfig"
/Zephyr-latest/drivers/sensor/ams/
DKconfig5 source "drivers/sensor/ams/ams_as5600/Kconfig"
6 source "drivers/sensor/ams/ams_iAQcore/Kconfig"
7 source "drivers/sensor/ams/ccs811/Kconfig"
8 source "drivers/sensor/ams/ens210/Kconfig"
9 source "drivers/sensor/ams/tcs3400/Kconfig"
10 source "drivers/sensor/ams/tmd2620/Kconfig"
11 source "drivers/sensor/ams/tsl2540/Kconfig"
12 source "drivers/sensor/ams/tsl2561/Kconfig"
13 source "drivers/sensor/ams/tsl2591/Kconfig"
/Zephyr-latest/samples/sensor/lis2dh/src/
Dmain.c12 static void fetch_and_display(const struct device *sensor) in fetch_and_display() argument
18 int rc = sensor_sample_fetch(sensor); in fetch_and_display()
29 rc = sensor_channel_get(sensor, in fetch_and_display()
45 rc = sensor_channel_get(sensor, SENSOR_CHAN_DIE_TEMP, &temperature); in fetch_and_display()
68 const struct device *const sensor = DEVICE_DT_GET_ANY(st_lis2dh); in main() local
70 if (sensor == NULL) { in main()
74 if (!device_is_ready(sensor)) { in main()
75 printf("Device %s is not ready\n", sensor->name); in main()
92 rc = sensor_attr_set(sensor, trig.chan, in main()
102 rc = sensor_trigger_set(sensor, &trig, trigger_handler); in main()
[all …]
/Zephyr-latest/samples/sensor/sm351lt/src/
Dmain.c14 static void fetch_and_display(const struct device *sensor) in fetch_and_display() argument
18 int rc = sensor_sample_fetch(sensor); in fetch_and_display()
22 rc = sensor_channel_get(sensor, in fetch_and_display()
44 const struct device *const sensor = DEVICE_DT_GET_ONE(honeywell_sm351lt); in main() local
46 if (!device_is_ready(sensor)) { in main()
47 printk("Device %s is not ready\n", sensor->name); in main()
63 rc = sensor_attr_set(sensor, trig.chan, in main()
71 rc = sensor_trigger_set(sensor, &trig, trigger_handler); in main()
85 fetch_and_display(sensor); in main()
/Zephyr-latest/drivers/sensor/adi/
DKconfig5 source "drivers/sensor/adi/adltc2990/Kconfig"
6 source "drivers/sensor/adi/adt7310/Kconfig"
7 source "drivers/sensor/adi/adt7420/Kconfig"
8 source "drivers/sensor/adi/adxl345/Kconfig"
9 source "drivers/sensor/adi/adxl362/Kconfig"
10 source "drivers/sensor/adi/adxl367/Kconfig"
11 source "drivers/sensor/adi/adxl372/Kconfig"
/Zephyr-latest/drivers/sensor/tdk/
DKconfig5 source "drivers/sensor/tdk/icm42605/Kconfig"
6 source "drivers/sensor/tdk/icm42688/Kconfig"
7 source "drivers/sensor/tdk/icm42x70/Kconfig"
8 source "drivers/sensor/tdk/icm45686/Kconfig"
9 source "drivers/sensor/tdk/icp101xx/Kconfig"
10 source "drivers/sensor/tdk/mpu6050/Kconfig"
11 source "drivers/sensor/tdk/mpu9250/Kconfig"
/Zephyr-latest/samples/sensor/sensor_shell/
Dfake_sensor.overlay12 vsensor0: sensor@0 {
13 compatible = "vnd,fake-sensor";
15 friendly-name = "Fake sensor 0";
19 vsensor1: sensor@1 {
20 compatible = "vnd,fake-sensor";
22 friendly-name = "Fake sensor 1";
DREADME.rst18 :zephyr-app: samples/sensor/sensor_shell
22 For boards that do not have a sensor, a simple fake sensor driver is provided and can enabled by
26 :zephyr-app: samples/sensor/sensor_shell
36 sensor - Sensor commands
38 get :Get sensor data. Channel names are optional. All channels are read when
41 info :Get sensor info, such as vendor and model name, for all sensors.
44 **get**: prints all the sensor channels data for a given sensor device name.
52 uart:~$ sensor get mma8652fc@1d
58 uart:~$ sensor get mma8652fc@1d accel_z
61 uart:~$ sensor get mma8652fc@1d 2
[all …]
/Zephyr-latest/samples/sensor/mhz19b/
DREADME.rst10 sensor, then periodically reads CO2 data from the sensor. The driver
26 MH-Z19B CO2 sensor and power the sensor according to the datasheet.
29 :zephyr-app: samples/sensor/mhz19b
37 The application will perform runtime configuration of the sensor, then
38 read back the sensor configuration data. After that it will read the CO2
43 Winsen MH-Z19B CO2 sensor application
44 Configuring sensor - OK
45 Reading configurations from sensor:
48 sensor: co2 reading: 758
49 sensor: co2 reading: 759
[all …]
/Zephyr-latest/drivers/sensor/sensirion/
DKconfig5 source "drivers/sensor/sensirion/scd4x/Kconfig"
6 source "drivers/sensor/sensirion/sgp40/Kconfig"
7 source "drivers/sensor/sensirion/sht3xd/Kconfig"
8 source "drivers/sensor/sensirion/sht4x/Kconfig"
9 source "drivers/sensor/sensirion/shtcx/Kconfig"
10 source "drivers/sensor/sensirion/sts4x/Kconfig"
/Zephyr-latest/doc/services/sensing/
Dindex.rst13 Sensing Subsystem is a high level sensor framework inside the OS user
14 space service layer. It is a framework focused on sensor fusion, client
15 arbitration, sampling, timing, scheduling and sensor based power management.
17 Key concepts in Sensing Subsystem include physical sensor and virtual sensor objects,
18 and a scheduling framework over sensor object relationships.
19 Physical sensors do not depend on any other sensor objects for input, and
20 will directly interact with existing zephyr sensor device drivers.
21 Virtual sensors rely on other sensor objects (physical or virtual) as
24 The sensing subsystem relies on Zephyr sensor device APIs (existing version or update in future)
25 to leverage Zephyr's large library of sensor device drivers (100+).
[all …]
/Zephyr-latest/samples/subsys/rtio/sensor_batch_processing/
DREADME.rst5 Implement a sensor device using RTIO for asynchronous data processing.
12 Application uses :ref:`rtio` with mempool API to fetch data from virtual sensor
35 submitting for, consuming, and processing the sensor data.
44 D: sensor@0: buf_len = 16, buf = 0x8056430
45 D: sensor@0: buf_len = 16, buf = 0x8056440
46 D: sensor@0: buf_len = 16, buf = 0x8056450
47 D: sensor@0: buf_len = 16, buf = 0x8056460
65 D: sensor@0: buf_len = 16, buf = 0x8056470
66 D: sensor@0: buf_len = 16, buf = 0x8056480
67 D: sensor@0: buf_len = 16, buf = 0x8056490
[all …]
/Zephyr-latest/drivers/sensor/ite/ite_tach_it8xxx2/
DKconfig1 # ITE tachometer sensor configuration options
7 bool "ITE it8xxx2 Tachometer sensor"
13 Enable the ITE it8xxx2 tachometer sensor,
14 it8xxx2 supports two 16-bit tachometer sensor, each sensor has two
/Zephyr-latest/samples/net/secure_mqtt_sensor_actuator/src/
Ddevice.c21 static const struct device *sensor = DEVICE_DT_GET_OR_NULL(DT_ALIAS(ambient_temp0)); variable
63 if (sensor == NULL) { in device_read_sensor()
69 rc = sensor_sample_fetch(sensor); in device_read_sensor()
75 rc = sensor_channel_get(sensor, SENSOR_CHAN, &sensor_val); in device_read_sensor()
119 if (sensor != NULL) { in devices_ready()
120 if (!device_is_ready(sensor)) { in devices_ready()
121 LOG_ERR("Device %s is not ready", sensor->name); in devices_ready()
124 LOG_INF("Device %s is ready", sensor->name); in devices_ready()
/Zephyr-latest/samples/sensor/sm351lt/
DREADME.rst5 Detect a magnet's presence using the SM351LT magnetoresistive sensor (polling & trigger mode).
10 This sample application periodically polls an SM351LT magnetoresistive sensor
11 and displays if a magnet near to the sensor, via the console.
16 This sample uses the Honeywell SM351LT sensor.
21 For more information about the SM351LT magnetoresistive sensor see
34 :zephyr:board:`bt510` includes a Honeywell SM351LT magnetoresistive sensor.
37 :zephyr-app: samples/sensor/sm351lt

12345678910>>...37