Home
last modified time | relevance | path

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

12345678910>>...25

/Zephyr-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/drivers/sensor/maxim/
DKconfig5 source "drivers/sensor/maxim/ds18b20/Kconfig"
6 source "drivers/sensor/maxim/max17055/Kconfig"
7 source "drivers/sensor/maxim/max17262/Kconfig"
8 source "drivers/sensor/maxim/max30101/Kconfig"
9 source "drivers/sensor/maxim/max31790/Kconfig"
10 source "drivers/sensor/maxim/max31855/Kconfig"
11 source "drivers/sensor/maxim/max31865/Kconfig"
12 source "drivers/sensor/maxim/max31875/Kconfig"
13 source "drivers/sensor/maxim/max44009/Kconfig"
14 source "drivers/sensor/maxim/max6675/Kconfig"
/Zephyr-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/drivers/sensor/nxp/
DKconfig5 source "drivers/sensor/nxp/fxas21002/Kconfig"
6 source "drivers/sensor/nxp/fxos8700/Kconfig"
7 source "drivers/sensor/nxp/mcux_acmp/Kconfig"
8 source "drivers/sensor/nxp/mcux_lpcmp/Kconfig"
9 source "drivers/sensor/nxp/nxp_kinetis_temp/Kconfig"
10 source "drivers/sensor/nxp/nxp_tempmon/Kconfig"
11 source "drivers/sensor/nxp/qdec_mcux/Kconfig"
12 source "drivers/sensor/nxp/qdec_nxp_s32/Kconfig"
/Zephyr-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/samples/sensor/sensor_shell/
Dapp.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.rst17 :zephyr-app: samples/sensor/sensor_shell
21 For boards that do not have a sensor, a simple fake sensor driver is provided, for example:
24 :zephyr-app: samples/sensor/sensor_shell
34 sensor - Sensor commands
36 get :Get sensor data. Channel names are optional. All channels are read when
39 info :Get sensor info, such as vendor and model name, for all sensors.
42 **get**: prints all the sensor channels data for a given sensor device name.
50 uart:~$ sensor get mma8652fc@1d
56 uart:~$ sensor get mma8652fc@1d accel_z
59 uart:~$ sensor get mma8652fc@1d 2
[all …]
/Zephyr-Core-3.7.0/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-Core-3.7.0/drivers/sensor/microchip/
DKconfig5 source "drivers/sensor/microchip/mchp_tach_xec/Kconfig"
6 source "drivers/sensor/microchip/mcp9600/Kconfig"
7 source "drivers/sensor/microchip/mcp970x/Kconfig"
8 source "drivers/sensor/microchip/mcp9808/Kconfig"
9 source "drivers/sensor/microchip/tcn75a/Kconfig"
/Zephyr-Core-3.7.0/drivers/sensor/wsen/
DKconfig5 source "drivers/sensor/wsen/wsen_hids/Kconfig"
6 source "drivers/sensor/wsen/wsen_itds/Kconfig"
7 source "drivers/sensor/wsen/wsen_pads/Kconfig"
8 source "drivers/sensor/wsen/wsen_pdus/Kconfig"
9 source "drivers/sensor/wsen/wsen_tids/Kconfig"
/Zephyr-Core-3.7.0/samples/sensor/vl53l0x/
DREADME.rst3 VL53L0X: Time Of Flight sensor
8 This sample periodically measures distance between vl53l0x sensor
10 It also shows how we can use the vl53l0x as a proximity sensor.
16 This sample uses the VL53L0X sensor controlled using the I2C interface.
26 This project outputs sensor data to the console. It requires a VL53L0X
27 sensor, which is present on the disco_l475_iot1 board.
30 :app: samples/sensor/vl53l0x/
/Zephyr-Core-3.7.0/drivers/sensor/ite/ite_tach_it8xxx2/
DKconfig1 # ITE tachometer sensor configuration options
7 bool "ITE it8xxx2 Tachometer sensor"
12 Enable the ITE it8xxx2 tachometer sensor,
13 it8xxx2 supports two 16-bit tachometer sensor, each sensor has two
/Zephyr-Core-3.7.0/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-Core-3.7.0/samples/modules/tflite-micro/magic_wand/src/
Daccelerometer_handler.cpp27 const struct device *const sensor = DEVICE_DT_GET_ONE(adi_adxl345); variable
38 if (!device_is_ready(sensor)) { in SetupAccelerometer()
39 printk("%s: device not ready.\n", sensor->name); in SetupAccelerometer()
43 MicroPrintf("Got accelerometer, name: %s\n", sensor->name); in SetupAccelerometer()
54 rc = sensor_sample_fetch(sensor); in ReadAccelerometer()
66 rc = sensor_channel_get(sensor, SENSOR_CHAN_ACCEL_XYZ, accel); in ReadAccelerometer()

12345678910>>...25