/Zephyr-latest/drivers/sensor/st/lis2dh/ |
D | lis2dh_trigger.c | 18 LOG_MODULE_DECLARE(lis2dh, CONFIG_SENSOR_LOG_LEVEL); 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() 77 k_work_submit(&lis2dh->work); in lis2dh_trigger_drdy_set() [all …]
|
D | lis2dh.c | 16 LOG_MODULE_REGISTER(lis2dh, CONFIG_SENSOR_LOG_LEVEL); 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() 81 lis2dh->temperature.val2 *= -1; in lis2dh_sample_fetch_temp() [all …]
|
D | CMakeLists.txt | 5 zephyr_library_sources(lis2dh.c)
|
D | lis2dh_i2c.c | 21 LOG_MODULE_DECLARE(lis2dh, CONFIG_SENSOR_LOG_LEVEL);
|
D | lis2dh_spi.c | 19 LOG_MODULE_DECLARE(lis2dh, CONFIG_SENSOR_LOG_LEVEL);
|
/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 24 https://www.st.com/en/mems-and-sensors/lis2dh.html. 47 :zephyr-app: samples/sensor/lis2dh 60 :zephyr-app: samples/sensor/lis2dh
|
D | CMakeLists.txt | 9 project(lis2dh) project
|
/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/boards/actinius/icarus_som/ |
D | actinius_icarus_som_common.dtsi | 61 compatible = "st,lis2dh12", "st,lis2dh";
|
/Zephyr-latest/drivers/sensor/st/ |
D | CMakeLists.txt | 16 add_subdirectory_ifdef(CONFIG_LIS2DH lis2dh)
|
D | Kconfig | 15 source "drivers/sensor/st/lis2dh/Kconfig"
|
/Zephyr-latest/boards/ezurio/mg100/ |
D | mg100.dts | 134 lis2dh@19 { 135 compatible = "st,lis3dh", "st,lis2dh";
|
/Zephyr-latest/boards/rakwireless/rak5010/ |
D | rak5010_nrf52840.dts | 95 compatible = "st,lis3dh", "st,lis2dh";
|
/Zephyr-latest/boards/96boards/wistrio/ |
D | 96b_wistrio.dts | 101 compatible = "st,lis3dh", "st,lis2dh";
|
/Zephyr-latest/boards/ruuvi/ruuvitag/ |
D | ruuvi_ruuvitag.dts | 98 compatible = "st,lis2dh", "st,lis2dh12";
|
/Zephyr-latest/boards/innblue/innblue21/ |
D | innblue21_common.dtsi | 121 compatible = "st,lis2dh";
|
/Zephyr-latest/boards/innblue/innblue22/ |
D | innblue22_common.dtsi | 124 compatible = "st,lis2dh";
|
/Zephyr-latest/boards/actinius/icarus_bee/ |
D | actinius_icarus_bee_common.dtsi | 123 compatible = "st,lis2dh12", "st,lis2dh";
|
/Zephyr-latest/boards/actinius/icarus_som_dk/ |
D | actinius_icarus_som_dk_common.dtsi | 122 compatible = "st,lis2dh12", "st,lis2dh";
|
/Zephyr-latest/boards/croxel/croxel_cx1825/ |
D | croxel_cx1825_nrf52840.dts | 121 compatible = "st,lis3dh", "st,lis2dh";
|