Home
last modified time | relevance | path

Searched full:sensor (Results 1 – 25 of 1798) sorted by relevance

12345678910>>...72

/Zephyr-latest/drivers/sensor/
DKconfig1 # Sensor configuration options
7 menuconfig SENSOR config
8 bool "Sensor drivers"
10 Include sensor drivers in system config
12 if SENSOR
14 module = SENSOR
15 module-str = sensor
19 int "Sensor init priority"
22 Sensor initialization priority.
25 bool "Async Sensor API"
[all …]
/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/samples/sensor/sensor_shell/pytest/
Dtest_sensor_shell.py12 logger.info('send "sensor info" command')
14 lines = shell.exec_command('sensor info')
15 assert any(['device name: sensor@0' in line for line in lines]), 'expected response not found'
16 assert any(['device name: sensor@1' in line for line in lines]), 'expected response not found'
22 logger.info('send "sensor get" command')
24 lines = shell.exec_command('sensor get sensor@0 voltage')
27 lines = shell.exec_command('sensor get sensor@1 53')
32 lines = shell.exec_command('sensor get sensor@0 gauge_desired_charging_current')
39 logger.info('send "sensor attr_get" command')
41 lines = shell.exec_command('sensor attr_get sensor@0 co2 sampling_frequency')
[all …]
/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/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/subsys/sensing/
Dsensor_mgmt.c8 #include <zephyr/drivers/sensor.h>
48 static uint32_t arbitrate_interval(struct sensing_sensor *sensor) in arbitrate_interval() argument
55 for_each_client_conn(sensor, conn) { in arbitrate_interval()
56 LOG_INF("arbitrate interval, sensor:%s for each conn:%p, interval:%d(us)", in arbitrate_interval()
57 sensor->dev->name, conn, conn->interval); in arbitrate_interval()
65 /* min_interval == UINT32_MAX means sensor is not opened by any clients, in arbitrate_interval()
70 LOG_DBG("arbitrate interval, sensor:%s, interval:%d(us)", 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()
[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 …]
/Zephyr-latest/include/zephyr/sensing/
Dsensing.h14 * @defgroup sensing_sensor_types Sensor Types
37 * @brief Sensor Version
52 * @brief Macro to create a sensor version value.
63 * @brief Sensor flag indicating if this sensor is on event reporting data.
65 * Reporting sensor data when the sensor event occurs, such as a motion detect sensor reporting
71 * @brief Sensor flag indicating if this sensor is on change reporting data.
73 * Reporting sensor data when the sensor data changes.
86 * @brief Sensing subsystem sensor state.
90 SENSING_SENSOR_STATE_READY = 0, /**< The sensor is ready. */
91 SENSING_SENSOR_STATE_OFFLINE = 1, /**< The sensor is offline. */
[all …]
Dsensing_sensor.h12 #include <zephyr/drivers/sensor.h>
16 * @defgroup sensing_sensor Sensing Sensor API
18 * @defgroup sensing_sensor_callbacks Sensor Callbacks
23 * @brief Sensing Sensor API
33 * @brief Sensor registration information
38 * Sensor flags
43 * Sample size in bytes for a single sample of the registered sensor.
49 * The number of sensor sensitivities
54 * Sensor version.
55 * Version can be used to identify different versions of sensor implementation.
[all …]
Dsensing_sensor_types.h11 * @brief Sensor Types Definition
13 * Sensor types definition followed HID standard.
23 * sensor category light
28 * sensor category motion
30 /* Sensor type for 3D accelerometers. */
32 /* Sensor type for 3D gyrometers. */
34 /* Sensor type for motion detectors. */
39 * sensor category other
43 /* Sensor type for uncalibrated 3D accelerometers. */
45 /* Sensor type for hinge angle sensors. */
[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/subsys/net/lib/lwm2m/
DKconfig.ipso12 bool "IPSO Temperature Sensor Support"
14 This IPSO object should be used with a temperature sensor to
17 that can be measured by the temperature sensor.
20 int "Maximum # of IPSO Temperature Sensor object instances"
25 Sensor instances available to the LWM2M client.
43 bool "IPSO Generic Sensor Support"
45 This IPSO object can be used to prototype a sensor.
50 int "Maximum # of IPSO Generic Sensor object instances"
54 Sensor instances available to the LWM2M client.
57 prompt "IPSO Generic Sensor object version"
[all …]
/Zephyr-latest/samples/sensor/mhz19b/
DREADME.rst3 MH-Z19B: CO2 Sensor Sample
10 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:
46 Sensor range is set to 5000ppm
[all …]
/Zephyr-latest/samples/subsys/zbus/work_queue/
DREADME.rst28 I: Sensor msg processed by CALLBACK fh1: temp = 10, press = 1, humidity = 100
29 I: Sensor msg processed by CALLBACK fh2: temp = 10, press = 1, humidity = 100
30 I: Sensor msg processed by CALLBACK fh3: temp = 10, press = 1, humidity = 100
31 I: Sensor msg processed by WORK QUEUE handler dh1: temp = 10, press = 1, humidity = 100
32 I: Sensor msg processed by WORK QUEUE handler dh2: temp = 10, press = 1, humidity = 100
33 I: Sensor msg processed by WORK QUEUE handler dh3: temp = 10, press = 1, humidity = 100
34 I: Sensor msg processed by THREAD handler 1: temp = 10, press = 1, humidity = 100
35 I: Sensor msg processed by THREAD handler 2: temp = 10, press = 1, humidity = 100
36 I: Sensor msg processed by THREAD handler 3: temp = 10, press = 1, humidity = 100
37 I: Sensor msg processed by CALLBACK fh1: temp = 20, press = 2, humidity = 200
[all …]
Dsample.yaml12 - "I: Sensor msg processed by CALLBACK fh1: temp = 10, press = 1, humidity = 100"
13 - "I: Sensor msg processed by CALLBACK fh2: temp = 10, press = 1, humidity = 100"
14 - "I: Sensor msg processed by CALLBACK fh3: temp = 10, press = 1, humidity = 100"
15 - "I: Sensor msg processed by WORK QUEUE handler dh1: temp = 10, press = 1, humidity = 100"
16 - "I: Sensor msg processed by WORK QUEUE handler dh2: temp = 10, press = 1, humidity = 100"
17 - "I: Sensor msg processed by WORK QUEUE handler dh3: temp = 10, press = 1, humidity = 100"
18 - "I: Sensor msg processed by THREAD handler 1: temp = 10, press = 1, humidity = 100"
19 - "I: Sensor msg processed by THREAD handler 2: temp = 10, press = 1, humidity = 100"
20 - "I: Sensor msg processed by THREAD handler 3: temp = 10, press = 1, humidity = 100"
21 - "I: Sensor msg processed by CALLBACK fh1: temp = 20, press = 2, humidity = 200"
[all …]
/Zephyr-latest/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-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/dts/bindings/sensor/
Dzephyr,sensing-sensor.yaml5 description: Sensing subsystem sensor common properties bindings.
7 include: sensor-device.yaml
10 sensor-types:
13 description: sensor type id (follow HID spec definition)
21 description: sensor minimal report interval
25 description: sensor reporters
29 description: the index in sensor-types of reporter if the reporter support multiple sensor-types
33 description: sensor works on stream mode or poll mode
Dnxp,kinetis-temperature.yaml4 description: NXP Kinetis temperature sensor
8 include: sensor-device.yaml
13 description: ADC channels for temperature sensor and bandgap voltage
17 description: name of each ADC channel (SENSOR or BANDGAP)
28 Temperature sensor voltage at 25 degrees Celsius in microvolts
30 sensor-slope-cold:
34 Temperature sensor slope in microvolts per degree Celsius for
37 sensor-slope-hot:
41 Temperature sensor slope in microvolts per degree Celsius for
/Zephyr-latest/drivers/sensor/bosch/bme680/
DKconfig1 # BME680 temperature, pressure, humidity and gas sensor configuration options
9 bool "BME680 sensor"
15 Enable driver for BME680 I2C- or SPI- based temperature, pressure, humidity and gas sensor.
23 Select temperature oversampling for the BME680 sensor. Higher values
41 Select pressure oversampling for the BME680 sensor. Higher values
59 Select humidity oversampling for the BME680 sensor. Higher values
77 Select the filter coefficient for the BME680 sensor.
97 prompt "BME680 gas sensor's heater temperature in degree Celsius"
100 Select the gas sensor's heater temperature for the BME680 sensor.
108 prompt "BME680 gas sensor's heating duration in milliseconds"
[all …]
/Zephyr-latest/samples/sensor/i3g4250d/src/
Dmain.c10 #include <zephyr/drivers/sensor.h>
15 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()
62 printf("Set sensor sampling frequency to %f Hz.\n", sampling_frequency); in main()
[all …]
/Zephyr-latest/samples/sensor/sensor_shell/
DREADME.rst2 :name: Sensor shell
18 :zephyr-app: samples/sensor/sensor_shell
22 For boards that do not have a sensor, a simple fake sensor driver is provided, for example:
25 :zephyr-app: samples/sensor/sensor_shell
35 sensor - Sensor commands
37 get :Get sensor data. Channel names are optional. All channels are read when
40 info :Get sensor info, such as vendor and model name, for all sensors.
43 **get**: prints all the sensor channels data for a given sensor device name.
51 uart:~$ sensor get mma8652fc@1d
57 uart:~$ sensor get mma8652fc@1d accel_z
[all …]
/Zephyr-latest/samples/sensor/grow_r502a/
DREADME.rst2 :name: GROW R502-A Fingerprint Sensor
5 Store and match fingerprints using the GROW R502-A fingerprint sensor.
12 #. Sensor LED is controlled using led APIs from zephyr subsystem.
13 #. Shows the number of fingerprints stored in the sensor.
14 #. Shows the sensor device's configurations like baud rate, library size, address and data packet s…
15 #. When SENSOR_ATTR_RECORD_FREE_IDX is set then it search for free index in sensor library.
16 #. When SENSOR_ATTR_RECORD_ADD is set then it adds a new fingerprint to the sensor.
18 #. When SENSOR_ATTR_RECORD_DEL is set then it deletes a fingerprint from the sensor.
25 This sample uses an external breakout for the sensor. A devicetree
27 used to control the sensor. Sensor can be powered using mentioned optional GPIO.
[all …]
/Zephyr-latest/samples/sensor/qdec/
Dsample.yaml2 description: Usage quadrature decoder sensor
10 sample.sensor.qdec_sensor:
16 - "Quadrature decoder sensor test"
19 sample.sensor.sam_qdec_sensor:
27 - "Quadrature decoder sensor test"
30 sample.sensor.st_qdec_sensor:
37 - "Quadrature decoder sensor test"
40 sample.sensor.nrf_qdec_sensor:
56 - "Quadrature decoder sensor test"

12345678910>>...72