/Zephyr-latest/drivers/sensor/st/lis2dh/ |
D | lis2dh_trigger.c | 18 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 …]
|
D | lis2dh.c | 16 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 …]
|
D | Kconfig | 1 # 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
|
D | lis2dh_i2c.c | 1 /* 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);
|
D | lis2dh_spi.c | 1 /* 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);
|
D | CMakeLists.txt | 5 zephyr_library_sources(lis2dh.c)
|
/Zephyr-latest/samples/sensor/accel_polling/ |
D | README.rst | 22 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/ |
D | README.rst | 1 .. 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 …]
|
D | sample.yaml | 2 name: LIS2DH Accelerometer Monitor 4 sample.sensor.lis2dh: 11 - lis2dh
|
D | CMakeLists.txt | 9 project(lis2dh) project
|
/Zephyr-latest/dts/bindings/sensor/ |
D | st,lis2dh-i2c.yaml | 5 STMicroelectronics LIS2DH 3-axis accelerometer accessed through I2C bus 7 compatible: "st,lis2dh" 9 include: ["i2c-device.yaml", "st,lis2dh-common.yaml"]
|
D | st,lis2dh-spi.yaml | 5 STMicroelectronics LIS2DH 3-axis accelerometer accessed through SPI bus 7 compatible: "st,lis2dh" 9 include: ["spi-device.yaml", "st,lis2dh-common.yaml"]
|
D | st,lis2dh-common.yaml | 6 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 {
|
D | st,lsm303dlhc-accel.yaml | 8 include: ["i2c-device.yaml", "st,lis2dh-common.yaml"]
|
D | st,lis3dh-i2c.yaml | 8 include: ["i2c-device.yaml", "st,lis2dh-common.yaml"]
|
D | st,lis2dh12-i2c.yaml | 8 include: ["i2c-device.yaml", "st,lis2dh-common.yaml"]
|
D | st,lsm303agr-accel-i2c.yaml | 9 include: ["i2c-device.yaml", "st,lis2dh-common.yaml"]
|
D | st,lsm303agr-accel-spi.yaml | 9 include: ["spi-device.yaml", "st,lis2dh-common.yaml"]
|
/Zephyr-latest/boards/sparkfun/thing_plus/ |
D | sparkfun_thing_plus_nrf9160_common.dtsi | 61 accel0 = &lis2dh; 139 lis2dh: lis2dh@18 { label 140 compatible = "st,lis2dh";
|
/Zephyr-latest/boards/circuitdojo/feather/ |
D | circuitdojo_feather_nrf9160_common.dtsi | 53 accel0 = &lis2dh; 138 lis2dh: lis2dh@18 { label 139 compatible = "st,lis2dh";
|
/Zephyr-latest/boards/st/stm32f411e_disco/ |
D | stm32f411e_disco_stm32f411xe_B.overlay | 25 compatible = "st,lis2dh", "st,lsm303dlhc-accel";
|
/Zephyr-latest/boards/st/stm32f3_disco/ |
D | stm32f3_disco_stm32f303xc_E.overlay | 24 compatible = "st,lis2dh", "st,lsm303agr-accel";
|
/Zephyr-latest/boards/shields/x_nucleo_iks01a2/ |
D | x_nucleo_iks01a2.overlay | 41 compatible = "st,lis2dh", "st,lsm303agr-accel";
|
/Zephyr-latest/drivers/sensor/st/ |
D | CMakeLists.txt | 16 add_subdirectory_ifdef(CONFIG_LIS2DH lis2dh)
|
/Zephyr-latest/boards/actinius/icarus_som/ |
D | actinius_icarus_som_common.dtsi | 61 compatible = "st,lis2dh12", "st,lis2dh";
|