Home
last modified time | relevance | path

Searched full:lis2dh (Results 1 – 25 of 69) sorted by relevance

123

/Zephyr-latest/drivers/sensor/st/lis2dh/
Dlis2dh_trigger.c18 LOG_MODULE_DECLARE(lis2dh, CONFIG_SENSOR_LOG_LEVEL);
19 #include "lis2dh.h"
46 struct lis2dh_data *lis2dh = dev->data; in lis2dh_trigger_drdy_set() local
57 atomic_clear_bit(&lis2dh->trig_flags, TRIGGED_INT1); in lis2dh_trigger_drdy_set()
59 status = lis2dh->hw_tf->update_reg(dev, LIS2DH_REG_CTRL3, in lis2dh_trigger_drdy_set()
62 lis2dh->handler_drdy = handler; in lis2dh_trigger_drdy_set()
63 lis2dh->trig_drdy = trig; in lis2dh_trigger_drdy_set()
68 lis2dh->chan_drdy = chan; in lis2dh_trigger_drdy_set()
73 atomic_set_bit(&lis2dh->trig_flags, START_TRIG_INT1); in lis2dh_trigger_drdy_set()
75 k_sem_give(&lis2dh->gpio_sem); in lis2dh_trigger_drdy_set()
[all …]
Dlis2dh.c16 LOG_MODULE_REGISTER(lis2dh, CONFIG_SENSOR_LOG_LEVEL);
17 #include "lis2dh.h"
54 struct lis2dh_data *lis2dh = dev->data; in lis2dh_sample_fetch_temp() local
58 ret = lis2dh->hw_tf->read_data(dev, cfg->temperature.dout_addr, raw, in lis2dh_sample_fetch_temp()
72 lis2dh->temperature.val1 = (int32_t)((int8_t)raw[1]); in lis2dh_sample_fetch_temp()
74 lis2dh->temperature.val2 = 0; in lis2dh_sample_fetch_temp()
76 lis2dh->temperature.val2 = in lis2dh_sample_fetch_temp()
78 lis2dh->temperature.val2 = (lis2dh->temperature.val2 * 1000000); in lis2dh_sample_fetch_temp()
79 lis2dh->temperature.val2 >>= cfg->temperature.fractional_bits; in lis2dh_sample_fetch_temp()
80 if (lis2dh->temperature.val1 < 0) { in lis2dh_sample_fetch_temp()
[all …]
DKconfig1 # LIS2DH Three Axis Accelerometer configuration options
6 menuconfig LIS2DH config
7 bool "LIS2DH Three Axis Accelerometer"
13 Enable SPI/I2C-based driver for LIS2DH, LIS3DH, LSM303DLHC,
16 if LIS2DH
164 endif # LIS2DH
Dlis2dh_i2c.c1 /* ST Microelectronics LIS2DH 3-axis accelerometer driver
8 * https://www.st.com/resource/en/datasheet/lis2dh.pdf
17 #include "lis2dh.h"
21 LOG_MODULE_DECLARE(lis2dh, CONFIG_SENSOR_LOG_LEVEL);
Dlis2dh_spi.c1 /* ST Microelectronics LIS2DH 3-axis accelerometer driver
8 * https://www.st.com/resource/en/datasheet/lis2dh.pdf
14 #include "lis2dh.h"
19 LOG_MODULE_DECLARE(lis2dh, CONFIG_SENSOR_LOG_LEVEL);
DCMakeLists.txt5 zephyr_library_sources(lis2dh.c)
/Zephyr-latest/samples/sensor/accel_polling/
DREADME.rst22 accel0 = &lis2dh;
39 lis2dh@19 [m/s^2]: ( -6.013728, -3.064320, 7.277760)
40 lis2dh@19 [m/s^2]: ( -6.128640, -3.026016, 7.201152)
41 lis2dh@19 [m/s^2]: ( -6.090336, -3.064320, 7.162848)
42 lis2dh@19 [m/s^2]: ( -6.128640, -3.026016, 7.354368)
43 lis2dh@19 [m/s^2]: ( -6.166944, -3.102624, 7.277760)
44 lis2dh@19 [m/s^2]: ( -6.128640, -2.987712, 7.277760)
45 lis2dh@19 [m/s^2]: ( -6.052032, -2.987712, 7.277760)
46 lis2dh@19 [m/s^2]: ( -6.166944, -2.987712, 7.239456)
47 lis2dh@19 [m/s^2]: ( -6.090336, -3.026016, 7.201152)
/Zephyr-latest/samples/sensor/lis2dh/
DREADME.rst1 .. zephyr:code-sample:: lis2dh
2 :name: LIS2DH Motion Sensor
5 Get accelerometer data from an LIS2DH sensor (polling & trigger mode).
11 LIS2DH sensor (or the compatible LS2DH12, LIS3DH, and LSM303DLHC
17 This sample uses the LIS2DH, ST MEMS system-in-package featuring a 3D
23 For more information about the LIS2DH motion sensor see
24 https://www.st.com/en/mems-and-sensors/lis2dh.html.
44 supports the LIS2DH interface.
47 :zephyr-app: samples/sensor/lis2dh
56 supports the LIS2DH interface. This shield may also be used on other
[all …]
Dsample.yaml2 name: LIS2DH Accelerometer Monitor
4 sample.sensor.lis2dh:
11 - lis2dh
DCMakeLists.txt9 project(lis2dh) project
/Zephyr-latest/dts/bindings/sensor/
Dst,lis2dh-i2c.yaml5 STMicroelectronics LIS2DH 3-axis accelerometer accessed through I2C bus
7 compatible: "st,lis2dh"
9 include: ["i2c-device.yaml", "st,lis2dh-common.yaml"]
Dst,lis2dh-spi.yaml5 STMicroelectronics LIS2DH 3-axis accelerometer accessed through SPI bus
7 compatible: "st,lis2dh"
9 include: ["spi-device.yaml", "st,lis2dh-common.yaml"]
Dst,lis2dh-common.yaml6 in a .dts or .dtsi file you may include lis2dh.h and use the macros defined there.
9 #include <zephyr/dt-bindings/sensor/lis2dh.h>
11 lis2dh: lis2dh@0 {
Dst,lsm303dlhc-accel.yaml8 include: ["i2c-device.yaml", "st,lis2dh-common.yaml"]
Dst,lis3dh-i2c.yaml8 include: ["i2c-device.yaml", "st,lis2dh-common.yaml"]
Dst,lis2dh12-i2c.yaml8 include: ["i2c-device.yaml", "st,lis2dh-common.yaml"]
Dst,lsm303agr-accel-i2c.yaml9 include: ["i2c-device.yaml", "st,lis2dh-common.yaml"]
Dst,lsm303agr-accel-spi.yaml9 include: ["spi-device.yaml", "st,lis2dh-common.yaml"]
/Zephyr-latest/boards/sparkfun/thing_plus/
Dsparkfun_thing_plus_nrf9160_common.dtsi61 accel0 = &lis2dh;
139 lis2dh: lis2dh@18 { label
140 compatible = "st,lis2dh";
/Zephyr-latest/boards/circuitdojo/feather/
Dcircuitdojo_feather_nrf9160_common.dtsi53 accel0 = &lis2dh;
138 lis2dh: lis2dh@18 { label
139 compatible = "st,lis2dh";
/Zephyr-latest/boards/st/stm32f411e_disco/
Dstm32f411e_disco_stm32f411xe_B.overlay25 compatible = "st,lis2dh", "st,lsm303dlhc-accel";
/Zephyr-latest/boards/st/stm32f3_disco/
Dstm32f3_disco_stm32f303xc_E.overlay24 compatible = "st,lis2dh", "st,lsm303agr-accel";
/Zephyr-latest/boards/shields/x_nucleo_iks01a2/
Dx_nucleo_iks01a2.overlay41 compatible = "st,lis2dh", "st,lsm303agr-accel";
/Zephyr-latest/drivers/sensor/st/
DCMakeLists.txt16 add_subdirectory_ifdef(CONFIG_LIS2DH lis2dh)
/Zephyr-latest/boards/actinius/icarus_som/
Dactinius_icarus_som_common.dtsi61 compatible = "st,lis2dh12", "st,lis2dh";

123