/Zephyr-latest/dts/bindings/sensor/ |
D | invensense,icm42688.yaml | 4 # SPDX-License-Identifier: Apache-2.0 7 ICM-42688 motion tracking device 8 When setting the accel-pm, accel-range, accel-odr, gyro-pm, gyro-range, 9 gyro-odr properties in a .dts or .dtsi file you may include icm42688.h 13 #include <zephyr/dt-bindings/sensor/icm42688.h> 18 accel-pwr-mode = <ICM42688_ACCEL_LN>; 19 accel-fs = <ICM42688_ACCEL_FS_16G>; 20 accel-odr = <ICM42688_ACCEL_ODR_2000>; 21 gyro-pwr-mode= <ICM42688_GYRO_LN>; 22 gyro-fs = <ICM42688_GYRO_FS_2000>; [all …]
|
D | st,lsm6dso-common.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 When setting the accel-pm, accel-range, accel-odr, gyro-pm, gyro-range, 6 gyro-odr properties in a .dts or .dtsi file you may include lsm6dso.h 10 #include <zephyr/dt-bindings/sensor/lsm6dso.h> 15 accel-pm = <LSM6DSO_DT_XL_ULP_MODE>; 16 accel-range = <LSM6DSO_DT_FS_8G>; 17 accel-odr = <LSM6DSO_DT_ODR_1Hz6>; 18 gyro-pm = <LSM6DSO_DT_GY_NORMAL_MODE>; 19 gyro-range = <LSM6DSO_DT_FS_2000DPS>; 20 gyro-odr = <LSM6DSO_DT_ODR_6667Hz>; [all …]
|
D | st,lis2de12-common.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 When setting the accel-range, accel-odr, properties in a .dts or .dtsi 9 #include <zephyr/dt-bindings/sensor/lis2de12.h> 14 accel-range = <LIS2DE12_DT_FS_16G>; 15 accel-odr = <LIS2DE12_DT_ODR_AT_100Hz>; 18 include: sensor-device.yaml 21 int1-gpios: 22 type: phandle-array 30 int2-gpios: 31 type: phandle-array [all …]
|
D | st,ism330dhcx-common.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 When setting the accel-odr and gyro-odr properties in a .dts or .dtsi file you may include 9 #include <zephyr/dt-bindings/sensor/ism330dhcx.h> 14 accel-odr = <ISM330DHCX_DT_ODR_104Hz>; 15 gyro-odr = <ISM330DHCX_DT_ODR_104Hz>; 18 include: sensor-device.yaml 21 drdy-gpios: 22 type: phandle-array 30 int-pin: 43 configuration at power-up. [all …]
|
D | st,lsm6dso16is-common.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 When setting the accel-range, accel-odr, gyro-range, gyro-odr properties in 10 #include <zephyr/dt-bindings/sensor/lsm6dso16is.h> 15 accel-range = <LSM6DSO16IS_DT_FS_8G>; 16 accel-odr = <LSM6DSO16IS_DT_ODR_104Hz_LP>; 17 gyro-range = <LSM6DSO16IS_DT_FS_2000DPS>; 18 gyro-odr = <LSM6DSO16IS_DT_ODR_104Hz_LP>; 21 include: sensor-device.yaml 24 irq-gpios: 25 type: phandle-array [all …]
|
D | st,lis2du12-common.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 When setting the accel-range, accel-odr, properties in a .dts or .dtsi 9 #include <zephyr/dt-bindings/sensor/lis2du12.h> 14 accel-range = <LIS2DU12_DT_FS_16G>; 15 accel-odr = <LIS2DU12_DT_ODR_AT_50Hz>; 18 include: sensor-device.yaml 21 int1-gpios: 22 type: phandle-array 30 int2-gpios: 31 type: phandle-array [all …]
|
D | st,lsm9ds1.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 STMicroelectronics LSM9DS1 9-axis IMU (Inertial Measurement Unit) sensor 10 When setting the accel-range, gyro-range, imu-odr properties in 15 #include <zephyr/dt-bindings/sensor/lsm9ds1.h> 20 accel-range = <LSM9DS1_DT_FS_4G>; 21 imu-odr = <LSM9DS1_IMU_14Hz9>; 22 gyro-range = <LSM9DS1_DT_FS_2000DPS>; 27 include: [sensor-device.yaml, i2c-device.yaml] 30 accel-range: 34 Range of the accelerometer. Unit : g. Default is power-up configuration. [all …]
|
D | st,lsm6dsv16x-common.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 When setting the accel-range, accel-odr, gyro-range, gyro-odr properties in 10 #include <zephyr/dt-bindings/sensor/lsm6dsv16x.h> 15 accel-range = <LSM6DSV16X_DT_FS_8G>; 16 accel-odr = <LSM6DSV16X_DT_ODR_AT_60Hz>; 17 gyro-range = <LSM6DSV16X_DT_FS_4000DPS>; 18 gyro-odr = <LSM6DSV16X_DT_ODR_AT_60Hz>; 21 include: sensor-device.yaml 24 int1-gpios: 25 type: phandle-array [all …]
|
/Zephyr-latest/samples/sensor/lis2dh/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 15 struct sensor_value accel[3]; in fetch_and_display() local 21 if (rc == -EBADMSG) { in fetch_and_display() 31 accel); in fetch_and_display() 38 sensor_value_to_double(&accel[0]), in fetch_and_display() 39 sensor_value_to_double(&accel[1]), in fetch_and_display() 40 sensor_value_to_double(&accel[2])); in fetch_and_display() 75 printf("Device %s is not ready\n", sensor->name); in main() 88 struct sensor_value odr = { in main() local 94 &odr); in main() [all …]
|
/Zephyr-latest/boards/shields/x_nucleo_iks4a1/ |
D | x_nucleo_iks4a1.overlay | 4 * SPDX-License-Identifier: Apache-2.0 21 accel-odr = <0x1b>; 22 gyro-odr = <0x11>; 23 irq-gpios = <&arduino_header 5 GPIO_ACTIVE_HIGH>; /* A5 (PC0) */ 24 drdy-pin = <1>; 30 accel-odr = <0x02>; 31 gyro-odr = <0x02>; 32 int2-gpios = <&arduino_header 10 GPIO_ACTIVE_HIGH>; /* D4 (PB5) */ 33 drdy-pin = <2>; 34 drdy-pulsed; [all …]
|
D | x_nucleo_iks4a1_shub1.overlay | 4 * SPDX-License-Identifier: Apache-2.0 17 accel-odr = <0x02>; 18 gyro-odr = <0x02>; 19 int1-gpios = <&arduino_header 11 GPIO_ACTIVE_HIGH>; /* D5 */ 20 drdy-pin = <1>;
|
/Zephyr-latest/samples/sensor/accel_polling/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 17 #define ACCEL_ALIAS(i) DT_ALIAS(_CONCAT(accel, i)) 65 if (cqe->result != 0) { in print_accels_stream() 66 printk("async read failed %d\n", cqe->result); in print_accels_stream() 67 return cqe->result; in print_accels_stream() 94 rc = decoder->get_frame_count(buf, in print_accels_stream() 103 if (decoder->has_trigger(buf, SENSOR_TRIG_TAP)) { in print_accels_stream() 104 printk("Tap! Sensor %s\n", dev->name); in print_accels_stream() 109 decoder->decode(buf, (struct sensor_chan_spec) {SENSOR_CHAN_ACCEL_XYZ, 0}, in print_accels_stream() 112 printk("Accel data for %s (%" PRIq(6) ", %" PRIq(6) in print_accels_stream() [all …]
|
/Zephyr-latest/doc/hardware/peripherals/sensor/ |
D | device_tree.rst | 10 .. code-block:: dts 12 #include <zephyr/dt-bindings/icm42688.h> 20 … int-gpios = <&pioc 6 GPIO_ACTIVE_HIGH>; /* SoC specific pin to select for interrupt line */ 21 spi-max-frequency = <DT_FREQ_M(24)>; /* Maximum SPI bus frequency */ 22 accel-pwr-mode = <ICM42688_ACCEL_LN>; /* Low noise mode */ 23 accel-odr = <ICM42688_ACCEL_ODR_2000>; /* 2000 Hz sampling */ 24 accel-fs = <ICM42688_ACCEL_FS_16>; /* 16G scale */ 25 gyro-pwr-mode = <ICM42688_GYRO_LN>; /* Low noise mode */ 26 gyro-odr = <ICM42688_GYRO_ODR_2000>; /* 2000 Hz sampling */ 27 gyro-fs = <ICM42688_GYRO_FS_16>; /* 16G scale */
|
/Zephyr-latest/tests/drivers/build_all/sensor/ |
D | i2c.dtsi | 4 * 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 …]
|
D | i3c.dtsi | 4 * SPDX-License-Identifier: Apache-2.0 16 assigned-address = <0x1>; 17 drdy-gpios = <&test_gpio 0 0>; 23 assigned-address = <0x2>; 24 drdy-gpios = <&test_gpio 0 0>; 30 assigned-address = <0x3>; 31 drdy-gpios = <&test_gpio 0 0>; 37 assigned-address = <0x4>; 43 assigned-address = <0x5>; 44 int1-gpios = <&test_gpio 0 0>; [all …]
|
/Zephyr-latest/boards/nxp/vmu_rt1170/ |
D | vmu_rt1170_mimxrt1176_cm7.dts | 4 * SPDX-License-Identifier: Apache-2.0 7 /dts-v1/; 10 #include <zephyr/dt-bindings/led/led.h> 12 #include <zephyr/dt-bindings/input/input-event-codes.h> 24 pwm-led0 = &buzzer0; 25 mcuboot-button0 = &arming_button; 34 zephyr,shell-uart = &lpuart1; 36 zephyr,flash-controller = &mx25um51345g; 38 zephyr,code-partition = &slot0_partition; 39 zephyr,uart-mcumgr = &lpuart1; [all …]
|
/Zephyr-latest/drivers/sensor/st/lis2de12/ |
D | lis2de12.c | 1 /* ST Microelectronics LIS2DE12 3-axis accelerometer sensor driver 5 * SPDX-License-Identifier: Apache-2.0 38 return -EINVAL; in lis2de12_freq_to_odr_val() 43 uint32_t gain; /* Accel sensor sensitivity in ug/LSB */ 63 return -EINVAL; in lis2de12_accel_range_to_fs_val() 68 const struct lis2de12_config *cfg = dev->config; in lis2de12_accel_set_fs_raw() 69 stmdev_ctx_t *ctx = (stmdev_ctx_t *)&cfg->ctx; in lis2de12_accel_set_fs_raw() 70 struct lis2de12_data *data = dev->data; in lis2de12_accel_set_fs_raw() 73 return -EIO; in lis2de12_accel_set_fs_raw() 76 data->accel_fs = fs; in lis2de12_accel_set_fs_raw() [all …]
|
/Zephyr-latest/drivers/sensor/st/lis2du12/ |
D | lis2du12.c | 1 /* ST Microelectronics LIS2DU12 3-axis accelerometer sensor driver 5 * SPDX-License-Identifier: Apache-2.0 40 return -EINVAL; in lis2du12_freq_to_odr_val() 55 return -EINVAL; in lis2du12_accel_range_to_fs_val() 60 const struct lis2du12_config *cfg = dev->config; in lis2du12_reboot() 61 stmdev_ctx_t *ctx = (stmdev_ctx_t *)&cfg->ctx; in lis2du12_reboot() 66 return -EIO; in lis2du12_reboot() 70 if (!--tries) { in lis2du12_reboot() 72 return -ETIMEDOUT; in lis2du12_reboot() 77 return -EIO; in lis2du12_reboot() [all …]
|
/Zephyr-latest/drivers/sensor/bosch/bmi08x/ |
D | bmi08x.h | 5 * SPDX-License-Identifier: Apache-2.0 17 /* Accel Chip Id register */ 20 /* Accel Error condition register */ 23 /* Accel Status flag register */ 26 /* Accel X LSB data register */ 29 /* Accel X MSB data register */ 32 /* Accel Y LSB data register */ 35 /* Accel Y MSB data register */ 38 /* Accel Z LSB data register */ 41 /* Accel Z MSB data register */ [all …]
|
D | bmi08x_accel.c | 5 * SPDX-License-Identifier: Apache-2.0 27 const struct bmi08x_accel_config *bmi08x = dev->config; in bmi08x_accel_transceive_i2c() 30 return i2c_write_read_dt(&bmi08x->bus.i2c, ®, 1, data, length); in bmi08x_accel_transceive_i2c() 33 return -EINVAL; in bmi08x_accel_transceive_i2c() 39 return i2c_write_dt(&bmi08x->bus.i2c, buf, 1 + length); in bmi08x_accel_transceive_i2c() 88 length -= len1; in bmi08x_write_config_file_i2c() 96 return i2c_is_ready_dt(&bus->i2c) ? 0 : -ENODEV; in bmi08x_bus_check_i2c() 114 const struct bmi08x_accel_config *bmi08x = dev->config; in bmi08x_accel_transceive_spi() 124 return spi_transceive_dt(&bmi08x->bus.spi, &tx, &rx); in bmi08x_accel_transceive_spi() 127 return spi_write_dt(&bmi08x->bus.spi, &tx); in bmi08x_accel_transceive_spi() [all …]
|
/Zephyr-latest/drivers/sensor/st/lsm6dso/ |
D | lsm6dso.c | 1 /* ST Microelectronics LSM6DSO 6-axis IMU sensor driver 5 * SPDX-License-Identifier: Apache-2.0 36 return -EINVAL; in lsm6dso_freq_to_odr_val() 39 static int lsm6dso_odr_to_freq_val(uint16_t odr) in lsm6dso_odr_to_freq_val() argument 42 if (odr < ARRAY_SIZE(lsm6dso_odr_map)) { in lsm6dso_odr_to_freq_val() 43 return lsm6dso_odr_map[odr]; in lsm6dso_odr_to_freq_val() 47 return lsm6dso_odr_map[ARRAY_SIZE(lsm6dso_odr_map) - 1]; in lsm6dso_odr_to_freq_val() 62 return -EINVAL; in lsm6dso_accel_range_to_fs_val() 86 return -EINVAL; in lsm6dso_gyro_range_to_fs_val() 91 const struct lsm6dso_config *cfg = dev->config; in lsm6dso_reboot() [all …]
|
/Zephyr-latest/boards/tdk/robokit1/ |
D | robokit1-common.dtsi | 4 * SPDX-License-Identifier: Apache-2.0 7 #include "robokit1-pinctrl.dtsi" 14 die-temp0 = &icm42688; 15 ambient-temp0 = &temp_sensor; 20 zephyr,shell-uart = &uart2; 23 zephyr,code-partition = &slot0_partition; 27 compatible = "gpio-leds"; 48 io-channels = <&spi_adc 0>; 49 pullup-uv = <3300000>; 50 pullup-ohm = <0>; [all …]
|
/Zephyr-latest/drivers/sensor/st/lsm9ds1/ |
D | lsm9ds1.c | 4 * SPDX-License-Identifier: Apache-2.0 29 * Values of the different sampling frequencies of the accelerometer, indexed by the raw odr 35 * Value of the different sampling frequencies of the gyroscope, indexed by the raw odr value 42 const struct lsm9ds1_config *cfg = dev->config; in lsm9ds1_reboot() 43 stmdev_ctx_t *ctx = (stmdev_ctx_t *)&cfg->ctx; in lsm9ds1_reboot() 76 return -EINVAL; in lsm9ds1_accel_range_to_fs_val() 90 return -EINVAL; in lsm9ds1_gyro_range_to_fs_val() 109 return -EINVAL; in lsm9ds1_accel_freq_to_odr_val() 122 return -EINVAL; in lsm9ds1_gyro_freq_to_odr_val() 125 static int lsm9ds1_accel_set_odr_raw(const struct device *dev, uint8_t odr) in lsm9ds1_accel_set_odr_raw() argument [all …]
|
/Zephyr-latest/drivers/sensor/st/lis2dh/ |
D | lis2dh.c | 4 * SPDX-License-Identifier: Apache-2.0 23 * Use values for low-power mode in DS "Mechanical (Sensor) characteristics", 40 * max(raw_val >> 4) = +/- 2^11 in lis2dh_convert() 45 val->val1 = converted_val / 1000000; in lis2dh_convert() 46 val->val2 = converted_val % 1000000; in lis2dh_convert() 51 int ret = -ENOTSUP; in lis2dh_sample_fetch_temp() 54 struct lis2dh_data *lis2dh = dev->data; in lis2dh_sample_fetch_temp() 55 const struct lis2dh_config *cfg = dev->config; in lis2dh_sample_fetch_temp() 58 ret = lis2dh->hw_tf->read_data(dev, cfg->temperature.dout_addr, raw, in lis2dh_sample_fetch_temp() 63 ret = -EIO; in lis2dh_sample_fetch_temp() [all …]
|
/Zephyr-latest/drivers/sensor/st/lsm6dso16is/ |
D | lsm6dso16is.c | 1 /* ST Microelectronics LSM6DSO16IS 6-axis IMU sensor driver 5 * SPDX-License-Identifier: Apache-2.0 38 return -EINVAL; in lsm6dso16is_freq_to_odr_val() 41 static int lsm6dso16is_odr_to_freq_val(uint16_t odr) in lsm6dso16is_odr_to_freq_val() argument 44 if (odr < ARRAY_SIZE(lsm6dso16is_odr_map)) { in lsm6dso16is_odr_to_freq_val() 45 return lsm6dso16is_odr_map[odr & 0xF]; in lsm6dso16is_odr_to_freq_val() 49 return lsm6dso16is_odr_map[ARRAY_SIZE(lsm6dso16is_odr_map) - 1]; in lsm6dso16is_odr_to_freq_val() 64 return -EINVAL; in lsm6dso16is_accel_range_to_fs_val() 80 return -EINVAL; in lsm6dso16is_gyro_range_to_fs_val() 85 const struct lsm6dso16is_config *cfg = dev->config; in lsm6dso16is_reboot() [all …]
|