/Zephyr-latest/samples/shields/x_nucleo_iks01a2/sensorhub/src/ |
D | main.c | 37 const struct device *const lsm6dsl = DEVICE_DT_GET_ONE(st_lsm6dsl); in main() local 39 if (!device_is_ready(lsm6dsl)) { in main() 40 printk("%s: device not ready.\n", lsm6dsl->name); in main() 44 /* set LSM6DSL accel/gyro sampling frequency to 104 Hz */ in main() 50 if (sensor_attr_set(lsm6dsl, SENSOR_CHAN_ACCEL_XYZ, in main() 56 if (sensor_attr_set(lsm6dsl, SENSOR_CHAN_GYRO_XYZ, in main() 67 sensor_trigger_set(lsm6dsl, &trig, lsm6dsl_trigger_handler); in main() 74 if (sensor_sample_fetch(lsm6dsl) < 0) { in main() 75 printf("LSM6DSL Sensor sample update error\n"); in main() 82 sensor_channel_get(lsm6dsl, SENSOR_CHAN_ACCEL_XYZ, accel); in main() [all …]
|
/Zephyr-latest/samples/sensor/lsm6dsl/ |
D | README.rst | 2 :name: LSM6DSL IMU sensor 5 Get accelerometer and gyroscope data from an LSM6DSL sensor (polling & trigger 11 This sample sets the LSM6DSL accelerometer and gyroscope to 104Hz 20 This sample uses the LSM6DSL sensor controlled using the I2C or SPI interface. 26 - LSM6DSL https://www.st.com/en/mems-and-sensors/lsm6dsl.html 31 This project outputs sensor data to the console. It requires an LSM6DSL 38 :zephyr-app: samples/sensor/lsm6dsl 48 :zephyr-app: samples/sensor/lsm6dsl 58 :zephyr-app: samples/sensor/lsm6dsl 70 LSM6DSL sensor samples: [all …]
|
D | sample.yaml | 2 name: LSM6DSL accelerometer and gyrometer sensor 4 sample.sensor.lsm6dsl: 7 depends_on: lsm6dsl
|
D | CMakeLists.txt | 5 project(lsm6dsl) project
|
/Zephyr-latest/samples/shields/x_nucleo_iks01a2/sensorhub/ |
D | README.rst | 13 This sample enables LSM6DSL sensors. Since all other shield 14 devices are connected to LSM6DSL, the LSM6DSL driver is configured in sensorhub 20 - LSM6DSL 6-Axis acceleration and angular velocity 21 - LSM6DSL 3-Axis magnetic field intensity (from LSM303AGR mag) - Primary option 22 - LSM6DSL ambient temperature and atmospheric pressure (from LPS22HB) - 60 LSM6DSL: Accel (m.s-2): x: 0.0, y: 0.2, z: 10.0 61 LSM6DSL: Gyro (dps): x: 0.029, y: -0.030, z: 0.016 62 LSM6DSL: Magn (gauss): x: 0.363, y: -0.002, z: -0.559 63 9:: lsm6dsl acc trig 1668
|
D | prj.conf | 7 # The LSM6DSL shub driver only permits one sensor
|
/Zephyr-latest/samples/shields/x_nucleo_iks01a2/standard/src/ |
D | main.c | 32 const struct device *const lsm6dsl = DEVICE_DT_GET_ONE(st_lsm6dsl); in main() local 47 if (!device_is_ready(lsm6dsl)) { in main() 48 printk("%s: device not ready.\n", lsm6dsl->name); in main() 60 /* set LSM6DSL accel/gyro sampling frequency to 104 Hz */ in main() 66 if (sensor_attr_set(lsm6dsl, SENSOR_CHAN_ACCEL_XYZ, in main() 72 if (sensor_attr_set(lsm6dsl, SENSOR_CHAN_GYRO_XYZ, in main() 83 sensor_trigger_set(lsm6dsl, &trig, lsm6dsl_trigger_handler); in main() 100 if (sensor_sample_fetch(lsm6dsl) < 0) { in main() 101 printf("LSM6DSL Sensor sample update error\n"); in main() 121 sensor_channel_get(lsm6dsl, SENSOR_CHAN_ACCEL_XYZ, accel1); in main() [all …]
|
/Zephyr-latest/dts/bindings/sensor/ |
D | st,lsm6dsl-i2c.yaml | 5 STMicroelectronics LSM6DSL 6-axis accelerometer and gyrometer accessed through 8 compatible: "st,lsm6dsl" 10 include: ["i2c-device.yaml", "st,lsm6dsl-common.yaml"]
|
D | st,lsm6dsl-spi.yaml | 5 STMicroelectronics LSM6DSL 6-axis accelerometer and gyrometer accessed through 8 compatible: "st,lsm6dsl" 10 include: ["spi-device.yaml", "st,lsm6dsl-common.yaml"]
|
/Zephyr-latest/drivers/sensor/st/lsm6dsl/ |
D | Kconfig | 1 # LSM6DSL accelerometer and gyroscope sensor configuration 7 menuconfig LSM6DSL config 8 bool "LSM6DSL I2C/SPI accelerometer and gyroscope Chip" 14 Enable driver for LSM6DSL accelerometer and gyroscope 17 if LSM6DSL 154 endif # LSM6DSL
|
D | lsm6dsl_i2c.c | 1 /* lsm6dsl_i2c.c - I2C routines for LSM6DSL driver 15 #include "lsm6dsl.h" 19 LOG_MODULE_DECLARE(LSM6DSL, CONFIG_SENSOR_LOG_LEVEL);
|
D | lsm6dsl_spi.c | 1 /* lsm6dsl_spi.c - SPI routines for LSM6DSL driver 15 #include "lsm6dsl.h" 21 LOG_MODULE_DECLARE(LSM6DSL, CONFIG_SENSOR_LOG_LEVEL);
|
D | CMakeLists.txt | 5 zephyr_library_sources(lsm6dsl.c)
|
/Zephyr-latest/samples/sensor/lsm6dsl/src/ |
D | main.c | 44 /* lsm6dsl gyro */ in lsm6dsl_trigger_handler() 51 /* lsm6dsl external magn */ in lsm6dsl_trigger_handler() 59 /* lsm6dsl external press/temp */ in lsm6dsl_trigger_handler() 141 printf("LSM6DSL sensor samples:\n\n"); in main() 143 /* lsm6dsl accel */ in main() 150 /* lsm6dsl gyro */ in main() 158 /* lsm6dsl external magn */ in main() 167 /* lsm6dsl external press/temp */ in main()
|
/Zephyr-latest/boards/96boards/argonkey/ |
D | Kconfig.defconfig | 8 if LSM6DSL 21 endif # LSM6DSL
|
D | 96b_argonkey.dts | 48 accel0 = &lsm6dsl; 112 /* ST Microelectronics LSM6DSL accel/gyro sensor */ 113 lsm6dsl: lsm6dsl@1 { label 114 compatible = "st,lsm6dsl";
|
D | 96b_argonkey.yaml | 17 - lsm6dsl
|
/Zephyr-latest/boards/shields/x_nucleo_iks01a2/ |
D | x_nucleo_iks01a2_shub.overlay | 9 lsm6dsl_x_nucleo_iks01a2_shub: lsm6dsl@6b { 10 compatible = "st,lsm6dsl";
|
D | x_nucleo_iks01a2.overlay | 28 lsm6dsl_6b_x_nucleo_iks01a2: lsm6dsl@6b { 29 compatible = "st,lsm6dsl";
|
/Zephyr-latest/boards/shields/x_nucleo_iks01a2/doc/ |
D | index.rst | 10 is designed around the LSM6DSL 3D accelerometer and 3D gyroscope, the LSM303AGR 30 - LSM6DSL MEMS 3D accelerometer (±2/±4/±8/±16 g) and 37 - I²C sensor hub features on LSM6DSL available 71 In SensorHub mode LSM6DSL is connected to I2C2 and is accessible from the main board. 72 All the other devices are connected to LSM6DSL master through I2C1.
|
/Zephyr-latest/samples/shields/x_nucleo_iks01a2/standard/ |
D | README.rst | 14 - LSM6DSL: 3-Axis Acceleration and 3-Axis Angular Velocity 60 LSM6DSL: Accel (m.s-2): x: -0.0, y: -0.1, z: 10.0 61 LSM6DSL: Gyro (dps): x: 0.028, y: -0.025, z: 0.014
|
/Zephyr-latest/samples/boards/96boards/argonkey/sensors/ |
D | README.rst | 83 #. *LSM6DSL* accel 84 #. *LSM6DSL* gyro 85 #. *LIS2MDL* magnetometer (attached to *LSM6DSL*)
|
/Zephyr-latest/boards/st/b_l4s5i_iot01a/ |
D | b_l4s5i_iot01a.yaml | 17 - lsm6dsl
|
D | Kconfig.defconfig | 22 depends on LSM6DSL
|
/Zephyr-latest/samples/boards/96boards/argonkey/sensors/src/ |
D | main.c | 63 /* lsm6dsl gyro */ in lsm6dsl_trigger_handler() 76 /* lsm6dsl magn */ in lsm6dsl_trigger_handler() 90 /* lsm6dsl press/temp */ in lsm6dsl_trigger_handler() 308 /* lsm6dsl accel */ in main() 318 /* lsm6dsl gyro */ in main() 328 /* lsm6dsl magn */ in main() 339 /* lsm6dsl press/temp */ in main()
|