Home
last modified time | relevance | path

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

123

/Zephyr-latest/dts/bindings/sensor/
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,lis2de12-common.yaml2 # 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 …]
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,lis2du12-common.yaml2 # 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 …]
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,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 …]
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,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 …]
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 …]
/Zephyr-latest/drivers/sensor/bosch/bmi08x/
Dbmi08x.h5 * 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 …]
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/include/zephyr/dt-bindings/sensor/
Dlsm6dso.h4 * SPDX-License-Identifier: Apache-2.0
9 /* Accel power-modes */
14 /* Gyro power-modes */
18 /* Accel range */
24 /* Gyro range */
31 /* Accel and Gyro Data rates */
Dlsm6dso16is.h4 * SPDX-License-Identifier: Apache-2.0
9 /* Accel range */
15 /* Gyro range */
22 /* Accel and Gyro Data rates */
Diis2iclx.h4 * SPDX-License-Identifier: Apache-2.0
9 /* Accel range */
15 /* Accel Data rates */
Dlis2de12.h4 * SPDX-License-Identifier: Apache-2.0
9 /* Accel range */
15 /* Accel rates */
16 #define LIS2DE12_DT_ODR_OFF 0x00 /* Power-Down */
Dlis2du12.h4 * SPDX-License-Identifier: Apache-2.0
9 /* Accel range */
15 /* Accel rates */
16 #define LIS2DU12_DT_ODR_OFF 0x00 /* Power-Down */
28 #define LIS2DU12_DT_ODR_TRIG_PIN 0x0e /* Single-shot high latency by INT2 */
29 #define LIS2DU12_DT_ODR_TRIG_SW 0x0f /* Single-shot high latency by IF */
Dlsm6dsv16x.h4 * SPDX-License-Identifier: Apache-2.0
9 /* Accel range */
15 /* Gyro range */
23 /* Accel and Gyro Data rates */
Dlsm9ds1.h4 * SPDX-License-Identifier: Apache-2.0
10 /* Accel range */
/Zephyr-latest/tests/drivers/build_all/sensor/
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 …]
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 …]
/Zephyr-latest/drivers/sensor/tdk/mpu6050/
Dmpu6050.c4 * SPDX-License-Identifier: Apache-2.0
26 val->val1 = conv_val / 1000000; in mpu6050_convert_accel()
27 val->val2 = conv_val % 1000000; in mpu6050_convert_accel()
38 val->val1 = conv_val / 1000000; in mpu6050_convert_gyro()
39 val->val2 = conv_val % 1000000; in mpu6050_convert_gyro()
59 val->val1 = tmp_val / 1000000; in mpu6050_convert_temp()
60 val->val2 = tmp_val % 1000000; in mpu6050_convert_temp()
67 struct mpu6050_data *drv_data = dev->data; in mpu6050_channel_get()
71 mpu6050_convert_accel(val, drv_data->accel_x, in mpu6050_channel_get()
72 drv_data->accel_sensitivity_shift); in mpu6050_channel_get()
[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()
43 uint32_t gain; /* Accel sensor sensitivity in ug/LSB */
53 static int lis2de12_accel_range_to_fs_val(int32_t range) in lis2de12_accel_range_to_fs_val() argument
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()
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()
[all …]
/Zephyr-latest/tests/drivers/sensor/icm42688/src/
Dmain.c3 * SPDX-License-Identifier: Apache-2.0
45 icm42688_emul_set_reg(fixture->target, REG_INT_STATUS, &status, 1); in ZTEST_F()
46 zassert_equal(-EBUSY, sensor_sample_fetch(fixture->dev)); in ZTEST_F()
59 icm42688_emul_set_reg(fixture->target, REG_INT_STATUS, buffer, 1); in test_fetch_temp_mc()
65 temperature_reg = ((temperature_mc - 25000) * 13248) / 100000; in test_fetch_temp_mc()
68 icm42688_emul_set_reg(fixture->target, REG_TEMP_DATA1, buffer, 2); in test_fetch_temp_mc()
71 zassert_ok(sensor_sample_fetch(fixture->dev)); in test_fetch_temp_mc()
72 zassert_ok(sensor_channel_get(fixture->dev, SENSOR_CHAN_DIE_TEMP, &value)); in test_fetch_temp_mc()
74 /* Assert data is within 5 milli-C of the tested temperature */ in test_fetch_temp_mc()
85 /* Test -3.175C */ in ZTEST_F()
[all …]
/Zephyr-latest/drivers/sensor/bosch/bma4xx/
Dbma4xx.c1 /* Bosch BMA4xx 3-axis accelerometer driver
6 * SPDX-License-Identifier: Apache-2.0
29 return -ERANGE; in bma4xx_offset_to_reg_val()
42 struct bma4xx_data *bma4xx = dev->data; in bma4xx_attr_set_offset()
51 reg_addr = BMA4XX_REG_OFFSET_0 + (chan - SENSOR_CHAN_ACCEL_X); in bma4xx_attr_set_offset()
56 return bma4xx->hw_ops->write_reg(dev, reg_addr, reg_val[0]); in bma4xx_attr_set_offset()
66 return bma4xx->hw_ops->write_data(dev, reg_addr, (uint8_t *)reg_val, in bma4xx_attr_set_offset()
69 return -ENOTSUP; in bma4xx_attr_set_offset()
96 return -ERANGE; in bma4xx_odr_to_reg()
107 return -ERANGE; in bma4xx_odr_to_reg()
[all …]
/Zephyr-latest/drivers/sensor/bosch/bma280/
Dbma280.c4 * SPDX-License-Identifier: Apache-2.0
22 struct bma280_data *drv_data = dev->data; in bma280_sample_fetch()
23 const struct bma280_config *config = dev->config; in bma280_sample_fetch()
30 * since all accel data register addresses are consecutive, in bma280_sample_fetch()
33 if (i2c_burst_read_dt(&config->i2c, in bma280_sample_fetch()
35 LOG_DBG("Could not read accel axis data"); in bma280_sample_fetch()
36 return -EIO; in bma280_sample_fetch()
40 drv_data->x_sample = (((int8_t)buf[1]) << BMA280_ACCEL_LSB_BITS) | lsb; in bma280_sample_fetch()
43 drv_data->y_sample = (((int8_t)buf[3]) << BMA280_ACCEL_LSB_BITS) | lsb; in bma280_sample_fetch()
46 drv_data->z_sample = (((int8_t)buf[5]) << BMA280_ACCEL_LSB_BITS) | lsb; in bma280_sample_fetch()
[all …]

123