Home
last modified time | relevance | path

Searched +full:accel +full:- +full:fs (Results 1 – 25 of 51) sorted by relevance

123

/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,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 …]
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,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 …]
Dbosch,bmi08x-accel.yaml2 # SPDX-License-Identifier: Apache-2.0
4 description: BMI08X Accel inertial measurement unit
6 include: sensor-device.yaml
9 int-gpios:
10 type: phandle-array
16 int1-map-io:
19 Bit[0]: Map Interrupt A to INT1, Accel Data Ready
23 int2-map-io:
26 Bit[0]: Map Interrupt A to INT2, Accel Data Ready
30 int1-conf-io:
[all …]
Dbosch,bmi08x-gyro.yaml2 # SPDX-License-Identifier: Apache-2.0
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:
36 Default frequency of accelerometer. (Unit - Hz)
[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/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/lis2de12/
Dlis2de12.c1 /* ST Microelectronics LIS2DE12 3-axis accelerometer sensor driver
5 * SPDX-License-Identifier: Apache-2.0
38 return -EINVAL; in lis2de12_freq_to_odr_val()
42 uint16_t fs; member
43 uint32_t gain; /* Accel sensor sensitivity in ug/LSB */
58 if (range == lis2de12_accel_fs_map[i].fs) { in lis2de12_accel_range_to_fs_val()
63 return -EINVAL; in lis2de12_accel_range_to_fs_val()
66 static int lis2de12_accel_set_fs_raw(const struct device *dev, uint8_t fs) in lis2de12_accel_set_fs_raw() argument
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()
[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()
61 printk("Cannot set sampling frequency for IIS2DLPC accel\n"); in iis2dlpc_config()
86 /* set ISM330DHCX accel sampling frequency to 208 Hz */ in ism330dhcx_config()
92 printk("Cannot set sampling frequency for ISM330DHCX accel\n"); in ism330dhcx_config()
100 printk("Cannot set fs for ISM330DHCX accel\n"); in ism330dhcx_config()
118 printk("Cannot set fs for ISM330DHCX gyro\n"); in ism330dhcx_config()
164 printk("%s: device not ready.\n", iis2dlpc->name); in main()
168 printk("%s: device not ready.\n", ism330dhcx->name); in main()
207 printf("X-NUCLEO-IKS02A1 sensor Mode 2 dashboard\n\n"); 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/lis2du12/
Dlis2du12.c1 /* 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/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()
45 printk("Cannot set sampling frequency for LIS2DW12 accel\n"); in lis2dw12_config()
70 /* set LSM6DSO accel sampling frequency to 208 Hz */ in lsm6dso_config()
76 printk("Cannot set sampling frequency for LSM6DSO accel\n"); in lsm6dso_config()
84 printk("Cannot set fs for LSM6DSO accel\n"); in lsm6dso_config()
102 printk("Cannot set fs for LSM6DSO gyro\n"); in lsm6dso_config()
163 printk("%s: device not ready.\n", lis2dw12->name); in main()
167 printk("%s: device not ready.\n", lsm6dso->name); in main()
213 printf("X-NUCLEO-IKS01A3 sensor dashboard\n\n"); in main()
[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 …]
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/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/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/boards/96boards/argonkey/sensors/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
29 return (val->val1 + (float)val->val2 / 1000000); in out_ev()
57 sprintf(out_str, "accel (%f %f %f) m/s2", (double)out_ev(&accel_x), in lsm6dsl_trigger_handler()
98 sprintf(out_str, "press (%f) kPa - temp (%f) deg", (double)out_ev(&press), in lsm6dsl_trigger_handler()
120 printk("%s: device not ready.\n", ledc->name); in main()
138 printk("%s: device not ready.\n", led0_gpio.port->name); in main()
144 printk("%s: device not ready.\n", led1_gpio.port->name); in main()
161 printk("%s: device not ready.\n", baro_dev->name); in main()
170 printk("%s: device not ready.\n", hum_dev->name); in main()
179 printk("%s: device not ready.\n", accel_dev->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()
173 printk("Cannot set sampling frequency for LIS2DW12 accel\n"); in lis2dw12_config()
198 /* set LSM6DSO accel sampling frequency to 208 Hz */ in lsm6dso_config()
204 printk("Cannot set sampling frequency for LSM6DSO accel\n"); in lsm6dso_config()
212 printk("Cannot set fs for LSM6DSO accel\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()
261 printk("Cannot set sampling frequency for LIS2DE12 accel\n"); in lis2de12_config()
309 printk("%s: device not ready.\n", hts221->name); in main()
[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/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 …]

123