Home
last modified time | relevance | path

Searched refs:iis2dh (Results 1 – 7 of 7) sorted by relevance

/Zephyr-latest/drivers/sensor/st/iis2dh/
Diis2dh_trigger.c28 struct iis2dh_data *iis2dh = dev->data; in iis2dh_enable_drdy() local
32 iis2dh_pin_int1_config_get(iis2dh->ctx, &reg3); in iis2dh_enable_drdy()
36 return iis2dh_pin_int1_config_set(iis2dh->ctx, &reg3); in iis2dh_enable_drdy()
46 struct iis2dh_data *iis2dh = dev->data; in iis2dh_trigger_set() local
57 iis2dh->drdy_handler = handler; in iis2dh_trigger_set()
58 iis2dh->drdy_trig = trig; in iis2dh_trigger_set()
61 iis2dh_acceleration_raw_get(iis2dh->ctx, raw); in iis2dh_trigger_set()
97 struct iis2dh_data *iis2dh = in iis2dh_gpio_callback() local
99 const struct iis2dh_device_config *cfg = iis2dh->dev->config; in iis2dh_gpio_callback()
108 k_sem_give(&iis2dh->gpio_sem); in iis2dh_gpio_callback()
[all …]
Diis2dh.c56 struct iis2dh_data *iis2dh = dev->data; in iis2dh_set_fs_raw() local
59 err = iis2dh_full_scale_set(iis2dh->ctx, fs); in iis2dh_set_fs_raw()
63 iis2dh->gain = iis2dh_gain[IIS2DH_HR_12bit][fs]; in iis2dh_set_fs_raw()
94 struct iis2dh_data *iis2dh = dev->data; in iis2dh_set_odr() local
100 return iis2dh_data_rate_set(iis2dh->ctx, val); in iis2dh_set_odr()
122 struct iis2dh_data *iis2dh = dev->data; in iis2dh_channel_get_acc() local
141 iis2dh_convert(pval++, iis2dh->acc[i], iis2dh->gain); in iis2dh_channel_get_acc()
206 struct iis2dh_data *iis2dh = dev->data; in iis2dh_sample_fetch() local
210 if (iis2dh_acceleration_raw_get(iis2dh->ctx, buf) < 0) { in iis2dh_sample_fetch()
215 iis2dh->acc[0] = buf[0]; in iis2dh_sample_fetch()
[all …]
DCMakeLists.txt9 zephyr_library_sources(iis2dh.c)
/Zephyr-latest/drivers/sensor/st/
DCMakeLists.txt8 add_subdirectory_ifdef(CONFIG_IIS2DH iis2dh)
DKconfig7 source "drivers/sensor/st/iis2dh/Kconfig"
/Zephyr-latest/tests/drivers/build_all/sensor/
Dspi.dtsi133 test_spi_iis2dh: iis2dh@11 {
134 compatible = "st,iis2dh";
Di2c.dtsi505 test_i2c_iis2dh: iis2dh@4b {
506 compatible = "st,iis2dh";