/Zephyr-latest/samples/shields/x_nucleo_iks01a3/sensorhub/src/ |
D | main.c | 66 static void lsm6dso_config(const struct device *lsm6dso) in lsm6dso_config() argument 70 /* set LSM6DSO accel sampling frequency to 208 Hz */ in lsm6dso_config() 74 if (sensor_attr_set(lsm6dso, SENSOR_CHAN_ACCEL_XYZ, in lsm6dso_config() 76 printk("Cannot set sampling frequency for LSM6DSO accel\n"); in lsm6dso_config() 82 if (sensor_attr_set(lsm6dso, SENSOR_CHAN_ACCEL_XYZ, in lsm6dso_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() 92 if (sensor_attr_set(lsm6dso, SENSOR_CHAN_GYRO_XYZ, in lsm6dso_config() 94 printk("Cannot set sampling frequency for LSM6DSO gyro\n"); in lsm6dso_config() 100 if (sensor_attr_set(lsm6dso, SENSOR_CHAN_GYRO_XYZ, in lsm6dso_config() [all …]
|
/Zephyr-latest/drivers/sensor/st/lsm6dso/ |
D | lsm6dso_trigger.c | 1 /* ST Microelectronics LSM6DSO 6-axis IMU sensor driver 8 * https://www.st.com/resource/en/datasheet/lsm6dso.pdf 18 #include "lsm6dso.h" 20 LOG_MODULE_DECLARE(LSM6DSO, CONFIG_SENSOR_LOG_LEVEL); 130 struct lsm6dso_data *lsm6dso = dev->data; in lsm6dso_trigger_set() local 138 lsm6dso->handler_drdy_acc = handler; in lsm6dso_trigger_set() 139 lsm6dso->trig_drdy_acc = trig; in lsm6dso_trigger_set() 146 lsm6dso->handler_drdy_gyr = handler; in lsm6dso_trigger_set() 147 lsm6dso->trig_drdy_gyr = trig; in lsm6dso_trigger_set() 156 lsm6dso->handler_drdy_temp = handler; in lsm6dso_trigger_set() [all …]
|
D | Kconfig | 1 # ST Microelectronics LSM6DSO 6-axis IMU sensor driver 6 menuconfig LSM6DSO config 7 bool "LSM6DSO I2C/SPI accelerometer and gyroscope Chip" 18 Enable driver for LSM6DSO accelerometer and gyroscope 21 if LSM6DSO 95 endif # LSM6DSO
|
D | CMakeLists.txt | 1 # ST Microelectronics LSM6DSO 6-axis IMU sensor driver 9 zephyr_library_sources(lsm6dso.c)
|
/Zephyr-latest/samples/shields/x_nucleo_iks01a3/sensorhub/ |
D | README.rst | 13 This sample enables LIS2DW12 and LSM6DSO sensors. Since all other shield 14 devices are connected to LSM6DSO, the LSM6DSO driver is configured in sensorhub 21 - LSM6DSO 6-Axis acceleration and angular velocity 22 - LSM6DSO (from LIS2MDL) 3-Axis magnetic field intensity 23 - LSM6DSO (from LPS22HH) ambient temperature and atmospheric pressure 27 - LSM6DSO (from HTS221): ambient temperature and relative humidity 73 LSM6DSO: Accel (m.s-2): x: -0.062, y: -0.028, z: 10.035 74 LSM6DSO: GYro (dps): x: -0.003, y: -0.001, z: 0.000 75 LSM6DSO: Magn (gauss): x: -0.052, y: -0.222, z: -0.059 76 LSM6DSO: Temperature: 27.9 C [all …]
|
/Zephyr-latest/samples/sensor/lsm6dso_i2c_on_i3c/ |
D | README.rst | 2 :name: LSM6DSO IMU sensor (I2C on I3C bus) 5 Get accelerometer and gyroscope data from an LSM6DSO sensor using I2C on I3C 10 This sample sets the date rate of LSM6DSO accelerometer and gyroscope to 17 This sample uses the LSM6DSO sensor controlled using the I2C interface 18 exposed by the I3C controller. It has been tested using the LSM6DSO on 25 - LSM6DSO https://www.st.com/en/mems-and-sensors/lsm6dso.html 30 This project outputs sensor data to the console. It requires an LSM6DSO 57 LSM6DSO subsubsection 60 A LSM6DSO sensor needs to be connected to this header. For example, 62 prepared so that the LSM6DSO sensor has address 0x6B (i.e. 0xD6, [all …]
|
D | sample.yaml | 2 name: LSM6DSO accelerometer and gyrometer sensor (I2C on I3C bus) 4 sample.sensor.lsm6dso.i2c_on_i3c_bus: 8 filter: dt_compat_enabled("st,lsm6dso")
|
D | CMakeLists.txt | 7 FILE(GLOB app_sources ../lsm6dso/src/*.c)
|
/Zephyr-latest/samples/sensor/lsm6dso/ |
D | README.rst | 2 :name: LSM6DSO IMU sensor 5 Get accelerometer and gyroscope data from an LSM6DSO sensor (polling & trigger 10 This sample sets the data rate of the LSM6DSO accelerometer and gyroscope to 17 This sample uses the LSM6DSO sensor controlled using the I2C interface. 23 - LSM6DSO https://www.st.com/en/mems-and-sensors/lsm6dso.html 28 This project outputs sensor data to the console. It requires an LSM6DSO 35 :zephyr-app: samples/sensor/lsm6dso 46 Testing LSM6DSO sensor in trigger mode.
|
D | sample.yaml | 2 name: LSM6DSO accelerometer and gyrometer sensor 4 sample.sensor.lsm6dso: 9 filter: dt_compat_enabled("st,lsm6dso")
|
D | CMakeLists.txt | 5 project(lsm6dso) project
|
/Zephyr-latest/samples/shields/x_nucleo_iks01a3/standard/src/ |
D | main.c | 194 static void lsm6dso_config(const struct device *lsm6dso) in lsm6dso_config() argument 198 /* set LSM6DSO accel sampling frequency to 208 Hz */ in lsm6dso_config() 202 if (sensor_attr_set(lsm6dso, SENSOR_CHAN_ACCEL_XYZ, in lsm6dso_config() 204 printk("Cannot set sampling frequency for LSM6DSO accel\n"); in lsm6dso_config() 210 if (sensor_attr_set(lsm6dso, SENSOR_CHAN_ACCEL_XYZ, in lsm6dso_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() 220 if (sensor_attr_set(lsm6dso, SENSOR_CHAN_GYRO_XYZ, in lsm6dso_config() 222 printk("Cannot set sampling frequency for LSM6DSO gyro\n"); in lsm6dso_config() 228 if (sensor_attr_set(lsm6dso, SENSOR_CHAN_GYRO_XYZ, in lsm6dso_config() [all …]
|
/Zephyr-latest/dts/bindings/sensor/ |
D | st,lsm6dso-i2c.yaml | 5 STMicroelectronics LSM6DSO 6-axis IMU (Inertial Measurement Unit) sensor 8 compatible: "st,lsm6dso" 10 include: ["i2c-device.yaml", "st,lsm6dso-common.yaml"]
|
D | st,lsm6dso-spi.yaml | 5 STMicroelectronics LSM6DSO 6-axis IMU (Inertial Measurement Unit) sensor 8 compatible: "st,lsm6dso" 10 include: ["spi-device.yaml", "st,lsm6dso-common.yaml"]
|
D | st,lsm6dso-common.yaml | 6 gyro-odr properties in a .dts or .dtsi file you may include lsm6dso.h 10 #include <zephyr/dt-bindings/sensor/lsm6dso.h> 12 lsm6dso: lsm6dso@0 {
|
D | st,lsm6dso32-i2c.yaml | 10 include: ["i2c-device.yaml", "st,lsm6dso-common.yaml"]
|
D | st,lsm6dso32-spi.yaml | 10 include: ["spi-device.yaml", "st,lsm6dso-common.yaml"]
|
/Zephyr-latest/samples/boards/st/sensortile_box/src/ |
D | main.c | 147 static void lsm6dso_config(const struct device *lsm6dso) in lsm6dso_config() argument 151 /* set LSM6DSO accel sampling frequency to 208 Hz */ in lsm6dso_config() 155 if (sensor_attr_set(lsm6dso, SENSOR_CHAN_ACCEL_XYZ, in lsm6dso_config() 157 printk("Cannot set sampling frequency for LSM6DSO accel\n"); in lsm6dso_config() 163 if (sensor_attr_set(lsm6dso, SENSOR_CHAN_ACCEL_XYZ, in lsm6dso_config() 165 printk("Cannot set fs for LSM6DSO accel\n"); in lsm6dso_config() 169 /* set LSM6DSO gyro sampling frequency to 208 Hz */ in lsm6dso_config() 173 if (sensor_attr_set(lsm6dso, SENSOR_CHAN_GYRO_XYZ, in lsm6dso_config() 175 printk("Cannot set sampling frequency for LSM6DSO gyro\n"); in lsm6dso_config() 181 if (sensor_attr_set(lsm6dso, SENSOR_CHAN_GYRO_XYZ, in lsm6dso_config() [all …]
|
/Zephyr-latest/samples/shields/x_nucleo_iks01a3/standard/ |
D | README.rst | 20 - LSM6DSO 6-Axis acceleration and angular velocity 84 LSM6DSO: Accel (m.s-2): x: 0.133, y: -0.133, z: 10.102 85 LSM6DSO: GYro (dps): x: 0.000, y: -0.006, z: -0.058 88 1:: lsm6dso acc trig 426 89 1:: lsm6dso gyr trig 426
|
/Zephyr-latest/boards/shields/x_nucleo_iks01a3/ |
D | x_nucleo_iks01a3_shub.overlay | 22 lsm6dso_6b_x_nucleo_iks01a3_shub: lsm6dso@6b { 23 compatible = "st,lsm6dso";
|
D | x_nucleo_iks01a3.overlay | 46 lsm6dso_6b_x_nucleo_iks01a3: lsm6dso@6b { 47 compatible = "st,lsm6dso";
|
/Zephyr-latest/samples/sensor/lsm6dso_i2c_on_i3c/boards/ |
D | mimxrt685_evk_mimxrt685s_cm33.overlay | 18 lsm6dso0: lsm6dso@6b0000000000000050 { 19 compatible = "st,lsm6dso";
|
/Zephyr-latest/samples/sensor/lsm6dso/src/ |
D | main.c | 24 /* lsm6dso accel */ in fetch_and_display() 33 /* lsm6dso gyro */ in fetch_and_display() 119 printf("Testing LSM6DSO sensor in trigger mode.\n\n"); in main() 122 printf("Testing LSM6DSO sensor in polling mode.\n\n"); in main()
|
/Zephyr-latest/boards/shields/x_nucleo_iks01a3/doc/ |
D | index.rst | 10 is designed around the LSM6DSO 3D accelerometer and 3D gyroscope, the LIS2MDL 37 - I2C sensor hub features on LSM6DSO available 69 In SensorHub mode LSM6DSO and LIS2DW12 are connected to I2C2 and are accessible from the main board. 70 All the other devices are connected to LSM6DSO master through I2C1.
|
/Zephyr-latest/boards/st/sensortile_box/ |
D | sensortile_box.dts | 53 accel1 = &lsm6dso; 150 lsm6dso: lsm6dso@1 { label 151 compatible = "st,lsm6dso";
|