Home
last modified time | relevance | path

Searched refs:lis2dh (Results 1 – 25 of 54) sorted by relevance

123

/Zephyr-latest/drivers/sensor/st/lis2dh/
Dlis2dh_trigger.c18 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 …]
Dlis2dh.c16 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 …]
DCMakeLists.txt5 zephyr_library_sources(lis2dh.c)
Dlis2dh_i2c.c21 LOG_MODULE_DECLARE(lis2dh, CONFIG_SENSOR_LOG_LEVEL);
Dlis2dh_spi.c19 LOG_MODULE_DECLARE(lis2dh, CONFIG_SENSOR_LOG_LEVEL);
/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
24 https://www.st.com/en/mems-and-sensors/lis2dh.html.
47 :zephyr-app: samples/sensor/lis2dh
60 :zephyr-app: samples/sensor/lis2dh
DCMakeLists.txt9 project(lis2dh) project
/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/boards/actinius/icarus_som/
Dactinius_icarus_som_common.dtsi61 compatible = "st,lis2dh12", "st,lis2dh";
/Zephyr-latest/drivers/sensor/st/
DCMakeLists.txt16 add_subdirectory_ifdef(CONFIG_LIS2DH lis2dh)
DKconfig15 source "drivers/sensor/st/lis2dh/Kconfig"
/Zephyr-latest/boards/ezurio/mg100/
Dmg100.dts134 lis2dh@19 {
135 compatible = "st,lis3dh", "st,lis2dh";
/Zephyr-latest/boards/rakwireless/rak5010/
Drak5010_nrf52840.dts95 compatible = "st,lis3dh", "st,lis2dh";
/Zephyr-latest/boards/96boards/wistrio/
D96b_wistrio.dts101 compatible = "st,lis3dh", "st,lis2dh";
/Zephyr-latest/boards/ruuvi/ruuvitag/
Druuvi_ruuvitag.dts98 compatible = "st,lis2dh", "st,lis2dh12";
/Zephyr-latest/boards/innblue/innblue21/
Dinnblue21_common.dtsi121 compatible = "st,lis2dh";
/Zephyr-latest/boards/innblue/innblue22/
Dinnblue22_common.dtsi124 compatible = "st,lis2dh";
/Zephyr-latest/boards/actinius/icarus_bee/
Dactinius_icarus_bee_common.dtsi123 compatible = "st,lis2dh12", "st,lis2dh";
/Zephyr-latest/boards/actinius/icarus_som_dk/
Dactinius_icarus_som_dk_common.dtsi122 compatible = "st,lis2dh12", "st,lis2dh";
/Zephyr-latest/boards/croxel/croxel_cx1825/
Dcroxel_cx1825_nrf52840.dts121 compatible = "st,lis3dh", "st,lis2dh";

123