Home
last modified time | relevance | path

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

1234567891011

/samples/sensor/i3g4250d/src/
A 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()
/samples/sensor/sensor_shell/
A 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";
A DKconfig5 bool "Enable fake sensor"
9 On boards that do not have a sensor, enabling this will build a fake
10 sensor that can be interacted with via the sensor shell.
/samples/sensor/sm351lt/src/
A 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()
/samples/sensor/lis2dh/src/
A 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 …]
/samples/sensor/light_polling/
A Dsample.yaml4 filter: dt_alias_exists("light-sensor")
6 sample.sensor.light_polling.grove:
9 - sensor
18 sample.sensor.light_polling.als_pt19:
21 - sensor
/samples/sensor/bmi270/
A Dsample.yaml4 sample.sensor.bmi270:
5 harness: sensor
8 - sensor
/samples/sensor/co2_polling/
A Dsample.yaml2 name: CO2 sensor sample
4 sample.sensor.co2:
5 harness: sensor
A DREADME.rst5 Get CO2 data from a sensor (polling mode).
10 A sensor sample that demonstrates how to poll a CO2 sensor.
15 This sample reads the CO2 sensor and print the values continuously.
18 :zephyr-app: samples/sensor/co2_polling
/samples/sensor/sm351lt/
A Dsample.yaml4 sample.sensor.sm351lt:
5 harness: sensor
8 - sensor
/samples/sensor/sensor_shell/dts/bindings/
A Dvnd,fake-sensor.yaml4 description: Fake sensor
6 include: sensor-device.yaml
8 compatible: "vnd,fake-sensor"
/samples/sensor/mhz19b/
A 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 …]
A Dsample.yaml7 name: MH-Z19B CO2 sensor
9 sample.sensor.mhz19b:
11 harness: sensor
/samples/sensor/lsm303dlhc/
A Dsample.yaml4 sample.sensor.lsm303dlhc:
5 harness: sensor
8 - sensor
/samples/sensor/pressure_interrupt/
A Dsample.yaml2 name: Pressure sensor interrupt
4 sample.sensor.pressure_interrupt:
7 filter: dt_alias_exists("pressure-sensor")
/samples/sensor/clock/
A Dsample.yaml16 sample.sensor.clock.counter:
20 - sensor
29 sample.sensor.clock.rtc:
33 - sensor
42 sample.sensor.clock.system:
46 - sensor
/samples/sensor/proximity_polling/
A Dsample.yaml2 name: Proximity sensor polling sample
4 sample.sensor.proximity_polling:
5 harness: sensor
/samples/subsys/rtio/sensor_batch_processing/
A Dapp.overlay12 vsensor0: sensor@0 {
13 compatible = "vnd,sensor";
21 vsensor1: sensor@1 {
22 compatible = "vnd,sensor";
/samples/sensor/lis2dh/
A Dsample.yaml4 sample.sensor.lis2dh:
6 harness: sensor
9 - sensor
/samples/sensor/veaa_x_3/
A Dsample.yaml2 name: VEAA-X-3 sensor sample
4 sample.sensor.veaa_x_3:
5 harness: sensor
/samples/sensor/bq274xx/
A Dsample.yaml5 sample.sensor.bq274xx:
6 harness: sensor
12 sample.sensor.bq274xx_without_int_gpios:
13 harness: sensor
/samples/sensor/qdec/
A 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.nrf_qdec_sensor:
50 - "Quadrature decoder sensor test"
/samples/sensor/grow_r502a/
A Dsample.yaml7 name: grow_r502a fingerprint sensor sample
9 sample.sensor.grow_r502a:
11 harness: sensor
/samples/sensor/pressure_polling/
A DREADME.rst2 :name: Barometric pressure and temperature sensor polling example
5 Get barometric pressure and temperature data from a sensor.
10 This sample application periodically reads the sensor
14 and the sensor provides altitude data.
19 This sample uses an external breakout for the sensor. A devicetree
20 overlay must be provided to identify the I2C/SPI used to control the sensor.
25 This sample supports pressure sensor devices. Device needs
26 to be aliased as ``pressure-sensor``. For example:
32 pressure-sensor = &icp201xx;
39 :zephyr-app: samples/sensor/pressure_polling
[all …]
/samples/modules/tflite-micro/magic_wand/src/
A 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()

Completed in 37 milliseconds

1234567891011