Home
last modified time | relevance | path

Searched +full:gyro +full:- +full:fs (Results 1 – 25 of 45) 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 …]
Dinvensense,mpu9250.yaml2 # SPDX-License-Identifier: Apache-2.0
5 InvenSense MPU-9250 Nine-Axis (Gyro + Accelerometer + Compass). See more
6 info at https://www.invensense.com/products/motion-tracking/9-axis/mpu-9250/
10 include: [sensor-device.yaml, i2c-device.yaml]
13 irq-gpios:
14 type: phandle-array
16 The INT signal default configuration is active-high. The
21 gyro-sr-div:
26 when gyro-dlpf is in range 5-184.
27 rate = sample_rate / (1 + gyro-sr-div)
[all …]
Dinvensense,icm42605.yaml2 # SPDX-License-Identifier: Apache-2.0
4 description: ICM-42605 motion tracking device
6 # ICM-42605 is SPI.
9 include: [sensor-device.yaml, spi-device.yaml]
12 int-gpios:
13 type: phandle-array
16 The INT signal default configuration is active-high. The
20 accel-hz:
24 Default frequency of accelerometer. (Unit - Hz)
27 - 1
[all …]
Dbosch,bmi08x-gyro.yaml2 # SPDX-License-Identifier: Apache-2.0
4 description: BMI08X Gyro inertial measurement unit
6 include: sensor-device.yaml
9 int-gpios:
10 type: phandle-array
16 int3-4-map-io:
24 int3-4-conf-io:
28 Bit[1]: if set to 1, INT3 is open-drain, otherwise it's push-pull
30 Bit[3]: if set to 1, INT4 is open-drain, otherwise it's push-pull
32 gyro-hz:
[all …]
Dinvensense,icm42670.yaml4 # SPDX-License-Identifier: Apache-2.0
6 description: ICM-42670 motion tracking device
8 include: [sensor-device.yaml]
11 int-gpios:
12 type: phandle-array
14 The INT signal default configuration is active-high. The
18 accel-hz:
22 Default frequency of accelerometer. (Unit - Hz)
24 Power-on reset value is 800.
26 - 0
[all …]
/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/samples/sensor/tdk_apex/boards/
Dnrf52dk_nrf52832_spi.overlay4 * SPDX-License-Identifier: Apache-2.0
12 tdk-apex-sensor0 = &icm42670p;
17 * Example configuration of a ICM42670-P device on spi2 compatible with an Arduino SPI bus.
21 cs-gpios = <&arduino_header 14 GPIO_ACTIVE_LOW>; /* D8 */
25 spi-max-frequency = <1000000>; /* conservatively set to 1MHz */
26 int-gpios = <&arduino_header 8 GPIO_ACTIVE_HIGH>; /* D2 */
27 accel-hz = <50>;
28 gyro-hz = <50>;
29 accel-fs = <16>;
30 gyro-fs = <2000>;
Dnrf52dk_nrf52832_i2c.overlay4 * SPDX-License-Identifier: Apache-2.0
12 tdk-apex-sensor0 = &icm42670p;
17 * Example configuration of a ICM42670-P device on i2c0 compatible with an Arduino I2C bus.
27 int-gpios = <&arduino_header 8 GPIO_ACTIVE_HIGH>; /* D2 */
28 accel-hz = <50>;
29 gyro-hz = <50>;
30 accel-fs = <16>;
31 gyro-fs = <2000>;
/Zephyr-latest/samples/sensor/6dof_motion_drdy/boards/
Dnrf52dk_nrf52832_i2c.overlay4 * SPDX-License-Identifier: Apache-2.0
8 * Get a node identifier for 6-axis IMU sensor.
12 6dof-motion-drdy0 = &icm42670p;
17 * Example configuration of a ICM42670-P device on i2c0 compatible with an Arduino I2C bus.
29 int-gpios = <&arduino_header 8 GPIO_ACTIVE_HIGH>; /* D2 */
30 accel-hz = <100>;
31 gyro-hz = <100>;
32 accel-fs = <16>;
33 gyro-fs = <2000>;
41 compatible = "nordic,nrf-uarte";
[all …]
Dnrf52dk_nrf52832_spi.overlay4 * SPDX-License-Identifier: Apache-2.0
8 * Get a node identifier for 6-axis IMU sensor.
12 6dof-motion-drdy0 = &icm42670p;
16 /* Example configuration of a ICM42670-P device on spi2 compatible with an Arduino SPI bus.
22 cs-gpios = <&arduino_header 14 GPIO_ACTIVE_LOW>; /* D8 */
26 spi-max-frequency = <1000000>; /* conservatively set to 1MHz */
27 int-gpios = <&arduino_header 8 GPIO_ACTIVE_HIGH>; /* D2 */
28 accel-hz = <100>;
29 gyro-hz = <100>;
30 accel-fs = <16>;
[all …]
/Zephyr-latest/drivers/sensor/st/lsm9ds1/
Dlsm9ds1.c4 * SPDX-License-Identifier: Apache-2.0
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()
94 static int lsm9ds1_accel_fs_val_to_gain(int fs) in lsm9ds1_accel_fs_val_to_gain() argument
96 return lsm9ds1_accel_fs_sens[fs]; in lsm9ds1_accel_fs_val_to_gain()
109 return -EINVAL; in lsm9ds1_accel_freq_to_odr_val()
122 return -EINVAL; in lsm9ds1_gyro_freq_to_odr_val()
127 const struct lsm9ds1_config *cfg = dev->config; in lsm9ds1_accel_set_odr_raw()
[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()
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()
65 static int lsm6dso_accel_fs_val_to_gain(int fs, bool double_range) in lsm6dso_accel_fs_val_to_gain() argument
69 lsm6dso_accel_fs_map[fs] * GAIN_UNIT_XL : in lsm6dso_accel_fs_val_to_gain()
70 lsm6dso_accel_fs_map[fs] * GAIN_UNIT_XL / 2; in lsm6dso_accel_fs_val_to_gain()
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/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/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()
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()
111 if (ism330dhcx_boot_set(data->ctx, 1) < 0) { in ism330dhcx_reboot()
112 return -EIO; in ism330dhcx_reboot()
115 /* Wait sensor turn-on time as per datasheet */ in ism330dhcx_reboot()
[all …]
/Zephyr-latest/samples/shields/x_nucleo_iks02a1/sensorhub/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
55 /* set IIS2DLPC accel/gyro sampling frequency to 100 Hz */ in iis2dlpc_config()
69 printk("Cannot set sampling frequency for IIS2DLPC gyro\n"); in iis2dlpc_config()
100 printk("Cannot set fs for ISM330DHCX accel\n"); in ism330dhcx_config()
104 /* set ISM330DHCX gyro sampling frequency to 208 Hz */ in ism330dhcx_config()
110 printk("Cannot set sampling frequency for ISM330DHCX gyro\n"); in ism330dhcx_config()
118 printk("Cannot set fs for ISM330DHCX gyro\n"); in ism330dhcx_config()
157 struct sensor_value gyro[3]; in main() local
164 printk("%s: device not ready.\n", iis2dlpc->name); in main()
168 printk("%s: device not ready.\n", ism330dhcx->name); in main()
[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()
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()
86 stmdev_ctx_t *ctx = (stmdev_ctx_t *)&cfg->ctx; in lsm6dso16is_reboot()
89 return -EIO; in lsm6dso16is_reboot()
92 /* Wait sensor turn-on time as per datasheet */ in lsm6dso16is_reboot()
[all …]
/Zephyr-latest/samples/shields/x_nucleo_iks01a3/sensorhub/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
39 /* set LIS2DW12 accel/gyro sampling frequency to 100 Hz */ in lis2dw12_config()
53 printk("Cannot set sampling frequency for LIS2DW12 gyro\n"); in lis2dw12_config()
84 printk("Cannot set fs for LSM6DSO accel\n"); in lsm6dso_config()
88 /* set LSM6DSO gyro sampling frequency to 208 Hz */ in lsm6dso_config()
94 printk("Cannot set sampling frequency for LSM6DSO gyro\n"); in lsm6dso_config()
102 printk("Cannot set fs for LSM6DSO gyro\n"); in lsm6dso_config()
156 struct sensor_value gyro[3]; in main() local
163 printk("%s: device not ready.\n", lis2dw12->name); in main()
167 printk("%s: device not ready.\n", lsm6dso->name); in main()
[all …]
/Zephyr-latest/boards/espressif/esp32c3_rust/
Desp32c3_rust.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
10 #include "esp32c3_rust-pinctrl.dtsi"
11 #include <zephyr/dt-bindings/input/input-event-codes.h>
12 #include <zephyr/dt-bindings/led/led.h>
16 model = "Espressif ESP32C3-RUST";
22 zephyr,shell-uart = &usb_serial;
24 zephyr,code-partition = &slot0_partition;
30 i2c-0 = &i2c0;
32 led-strip = &led_strip;
[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()
57 return -EINVAL; in lsm6dsv16x_freq_to_odr_val()
64 LOG_DBG("mode: %d - odr: %d", mode, i); in lsm6dsv16x_freq_to_odr_val()
69 return -EINVAL; in lsm6dsv16x_freq_to_odr_val()
84 return -EINVAL; in lsm6dsv16x_accel_range_to_fs_val()
91 int lsm6dsv16x_calc_accel_gain(uint8_t fs) in lsm6dsv16x_calc_accel_gain() argument
[all …]
Dlsm6dsv16x.h1 /* ST Microelectronics LSM6DSV16X 6-axis IMU sensor driver
5 * SPDX-License-Identifier: Apache-2.0
34 #define ON_I3C_BUS(cfg) (cfg->i3c.bus != NULL)
35 #define I3C_INT_PIN(cfg) (cfg->int_en_i3c)
47 /* Gyro sensor sensitivity grain is 4.375 udps/LSB */
50 int lsm6dsv16x_calc_accel_gain(uint8_t fs);
51 int lsm6dsv16x_calc_gyro_gain(uint8_t fs);
126 int16_t gyro[3]; member
200 return (data->bus_type == BUS_SPI) ? x | 0x80 : x; in lsm6dsv16x_bus_reg()
/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 …]
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/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/samples/shields/x_nucleo_iks02a1/standard/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
58 /* set IIS2DLPC accel/gyro sampling frequency to 100 Hz */ in iis2dlpc_config()
72 printk("Cannot set sampling frequency for IIS2DLPC gyro\n"); in iis2dlpc_config()
130 /* set ISM330DHCX gyro sampling frequency to 208 Hz */ in ism330dhcx_config()
136 printk("Cannot set sampling frequency for ISM330DHCX gyro\n"); in ism330dhcx_config()
144 printk("Cannot set fs for ISM330DHCX gyro\n"); in ism330dhcx_config()
168 struct sensor_value gyro[3]; in main() local
176 printk("%s: device not ready.\n", iis2dlpc->name); in main()
180 printk("%s: device not ready.\n", iis2mdc->name); in main()
184 printk("%s: device not ready.\n", ism330dhcx->name); in main()
[all …]
/Zephyr-latest/samples/shields/x_nucleo_iks01a3/standard/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
167 /* set LIS2DW12 accel/gyro sampling frequency to 100 Hz */ in lis2dw12_config()
181 printk("Cannot set sampling frequency for LIS2DW12 gyro\n"); in lis2dw12_config()
212 printk("Cannot set fs for LSM6DSO accel\n"); in lsm6dso_config()
216 /* set LSM6DSO gyro sampling frequency to 208 Hz */ in lsm6dso_config()
222 printk("Cannot set sampling frequency for LSM6DSO gyro\n"); in lsm6dso_config()
230 printk("Cannot set fs for LSM6DSO gyro\n"); in lsm6dso_config()
255 /* set LIS2DE12 accel/gyro sampling frequency to 100 Hz */ in lis2de12_config()
269 printk("Cannot set sampling frequency for LIS2DE12 gyro\n"); in lis2de12_config()
290 struct sensor_value gyro[3]; in main() local
[all …]

12