Home
last modified time | relevance | path

Searched +full:gyro +full:- +full:odr (Results 1 – 25 of 33) sorted by relevance

12

/Zephyr-latest/dts/bindings/sensor/
Dinvensense,icm42688.yaml4 # 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 …]
Dst,lsm6dso-common.yaml2 # 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 …]
Dst,ism330dhcx-common.yaml2 # 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 …]
Dst,lsm6dso16is-common.yaml2 # 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 …]
Dst,lsm6dsv16x-common.yaml2 # 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 …]
Dst,lsm9ds1.yaml2 # 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 …]
/Zephyr-latest/boards/shields/x_nucleo_iks4a1/
Dx_nucleo_iks4a1.overlay4 * 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 …]
Dx_nucleo_iks4a1_shub1.overlay4 * 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/doc/hardware/peripherals/sensor/
Ddevice_tree.rst10 .. 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/drivers/sensor/st/lsm9ds1/
Dlsm9ds1.c4 * 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/lsm6dso/
Dlsm6dso.c1 /* 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/tests/drivers/build_all/sensor/
Di2c.dtsi4 * 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 …]
Di3c.dtsi4 * 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 …]
Dspi.dtsi4 * SPDX-License-Identifier: Apache-2.0
16 spi-max-frequency = <0>;
17 int1-gpios = <&test_gpio 0 0>;
23 spi-max-frequency = <0>;
24 int1-gpios = <&test_gpio 0 0>;
30 spi-max-frequency = <0>;
36 spi-max-frequency = <0>;
37 int-gpios = <&test_gpio 0 0>;
43 spi-max-frequency = <0>;
49 spi-max-frequency = <0>;
[all …]
/Zephyr-latest/drivers/sensor/st/ism330dhcx/
Dism330dhcx.c1 /* ST Microelectronics ISM330DHCX 6-axis IMU sensor driver
5 * SPDX-License-Identifier: Apache-2.0
39 return -EINVAL; in ism330dhcx_freq_to_odr_val()
42 static int ism330dhcx_odr_to_freq_val(uint16_t odr) in ism330dhcx_odr_to_freq_val() argument
45 if (odr < ARRAY_SIZE(ism330dhcx_odr_map)) { in ism330dhcx_odr_to_freq_val()
46 return ism330dhcx_odr_map[odr]; in ism330dhcx_odr_to_freq_val()
50 return ism330dhcx_odr_map[ARRAY_SIZE(ism330dhcx_odr_map) - 1]; in ism330dhcx_odr_to_freq_val()
66 return -EINVAL; in ism330dhcx_accel_range_to_fs_val()
104 return -EINVAL; in ism330dhcx_gyro_range_to_fs_val()
109 struct ism330dhcx_data *data = dev->data; in ism330dhcx_reboot()
[all …]
/Zephyr-latest/drivers/sensor/st/lsm6dso16is/
Dlsm6dso16is.c1 /* 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 …]
/Zephyr-latest/drivers/sensor/st/i3g4250d/
Di3g4250d.c1 /* ST Microelectronics I3G4250D gyro driver
5 * SPDX-License-Identifier: Apache-2.0
28 struct i3g4250d_data *i3g4250d = dev->data; in i3g4250d_sample_fetch()
34 return -ENOTSUP; in i3g4250d_sample_fetch()
37 ret = i3g4250d_flag_data_ready_get(i3g4250d->ctx, &reg); in i3g4250d_sample_fetch()
42 ret = i3g4250d_angular_rate_raw_get(i3g4250d->ctx, buf); in i3g4250d_sample_fetch()
48 memcpy(i3g4250d->angular_rate, buf, sizeof(i3g4250d->angular_rate)); in i3g4250d_sample_fetch()
55 val->val1 = (int16_t)(raw_value * RAW_TO_MICRODEGREEPERSEC / 1000000LL); in i3g4250d_convert()
56 val->val2 = (int16_t)(raw_value * RAW_TO_MICRODEGREEPERSEC) % 1000000LL; in i3g4250d_convert()
90 struct i3g4250d_data *i3g4250d = dev->data; in i3g4250d_channel_get()
[all …]
/Zephyr-latest/boards/nxp/vmu_rt1170/
Dvmu_rt1170_mimxrt1176_cm7.dts4 * 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/bosch/bmi08x/
Dbmi08x_gyro.c5 * SPDX-License-Identifier: Apache-2.0
26 const struct bmi08x_gyro_config *bmi08x = dev->config; in bmi08x_gyro_transceive_i2c()
29 return i2c_write_read_dt(&bmi08x->bus.i2c, &reg, 1, data, length); in bmi08x_gyro_transceive_i2c()
32 return -EINVAL; in bmi08x_gyro_transceive_i2c()
38 return i2c_write_dt(&bmi08x->bus.i2c, buf, 1 + length); in bmi08x_gyro_transceive_i2c()
43 return i2c_is_ready_dt(&bus->i2c) ? 0 : -ENODEV; in bmi08x_bus_check_i2c()
58 const struct bmi08x_gyro_config *bmi08x = dev->config; in bmi08x_gyro_transceive_spi()
68 return spi_transceive_dt(&bmi08x->bus.spi, &tx, &rx); in bmi08x_gyro_transceive_spi()
71 return spi_write_dt(&bmi08x->bus.spi, &tx); in bmi08x_gyro_transceive_spi()
76 return spi_is_ready_dt(&bus->spi) ? 0 : -ENODEV; in bmi08x_bus_check_spi()
[all …]
Dbmi08x.h5 * SPDX-License-Identifier: Apache-2.0
196 /* Mask definitions for odr, bandwidth and range */
201 /* Position definitions for odr, bandwidth and range */
239 /* Gyro registers */
241 /* Gyro Chip Id register */
244 /* Gyro X LSB data register */
247 /* Gyro X MSB data register */
250 /* Gyro Y LSB data register */
253 /* Gyro Y MSB data register */
256 /* Gyro Z LSB data register */
[all …]
Dbmi08x_accel.c5 * 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, &reg, 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/lsm6dsv16x/
Dlsm6dsv16x.c1 /* ST Microelectronics LSM6DSV16X 6-axis IMU sensor driver
5 * SPDX-License-Identifier: Apache-2.0
29 * should be selected through accel-odr property in DT
50 const struct lsm6dsv16x_config *cfg = dev->config; in lsm6dsv16x_freq_to_odr_val()
51 stmdev_ctx_t *ctx = (stmdev_ctx_t *)&cfg->ctx; in lsm6dsv16x_freq_to_odr_val()
52 lsm6dsv16x_data_rate_t odr; in lsm6dsv16x_freq_to_odr_val() local
56 if (lsm6dsv16x_xl_data_rate_get(ctx, &odr) < 0) { in lsm6dsv16x_freq_to_odr_val()
57 return -EINVAL; in lsm6dsv16x_freq_to_odr_val()
60 mode = (odr >> 4) & 0xf; in lsm6dsv16x_freq_to_odr_val()
64 LOG_DBG("mode: %d - odr: %d", mode, i); in lsm6dsv16x_freq_to_odr_val()
[all …]
/Zephyr-latest/boards/tdk/robokit1/
Drobokit1-common.dtsi4 * 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/lsm6dsl/
Dlsm6dsl.c1 /* lsm6dsl.c - Driver for LSM6DSL accelerometer, gyroscope and
8 * SPDX-License-Identifier: Apache-2.0
42 return -EINVAL; in lsm6dsl_freq_to_odr_val()
46 static int lsm6dsl_odr_to_freq_val(uint16_t odr) in lsm6dsl_odr_to_freq_val() argument
49 if (odr < ARRAY_SIZE(lsm6dsl_odr_map)) { in lsm6dsl_odr_to_freq_val()
50 return lsm6dsl_odr_map[odr]; in lsm6dsl_odr_to_freq_val()
72 return -EINVAL; in lsm6dsl_accel_range_to_fs_val()
90 return -EINVAL; in lsm6dsl_gyro_range_to_fs_val()
96 struct lsm6dsl_data *data = dev->data; in lsm6dsl_reboot()
98 if (data->hw_tf->update_reg(dev, LSM6DSL_REG_CTRL3_C, in lsm6dsl_reboot()
[all …]
/Zephyr-latest/drivers/sensor/bosch/bmi160/
Dbmi160.c5 * SPDX-License-Identifier: Apache-2.0
8 * http://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BMI160-DS000-07.pdf
34 const struct bmi160_cfg *cfg = dev->config; in bmi160_transceive()
56 return spi_transceive_dt(&cfg->bus.spi, &tx, &rx); in bmi160_transceive()
59 return spi_write_dt(&cfg->bus.spi, &tx); in bmi160_transceive()
64 const struct bmi160_cfg *cfg = dev->config; in bmi160_bus_ready_spi()
66 return spi_is_ready_dt(&cfg->bus.spi); in bmi160_bus_ready_spi()
94 const struct bmi160_cfg *cfg = dev->config; in bmi160_bus_ready_i2c()
96 return device_is_ready(cfg->bus.i2c.bus); in bmi160_bus_ready_i2c()
102 const struct bmi160_cfg *cfg = dev->config; in bmi160_read_i2c()
[all …]

12