Lines Matching refs:iis2dh

28 	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()
110 k_work_submit(&iis2dh->work); in iis2dh_gpio_callback()
120 struct iis2dh_data *iis2dh = p1; in iis2dh_thread() local
123 k_sem_take(&iis2dh->gpio_sem, K_FOREVER); in iis2dh_thread()
124 iis2dh_handle_interrupt(iis2dh->dev); in iis2dh_thread()
132 struct iis2dh_data *iis2dh = in iis2dh_work_cb() local
135 iis2dh_handle_interrupt(iis2dh->dev); in iis2dh_work_cb()
141 struct iis2dh_data *iis2dh = dev->data; in iis2dh_init_interrupt() local
150 iis2dh->dev = dev; in iis2dh_init_interrupt()
153 k_sem_init(&iis2dh->gpio_sem, 0, K_SEM_MAX_LIMIT); in iis2dh_init_interrupt()
155 k_thread_create(&iis2dh->thread, iis2dh->thread_stack, in iis2dh_init_interrupt()
157 iis2dh_thread, iis2dh, in iis2dh_init_interrupt()
161 iis2dh->work.handler = iis2dh_work_cb; in iis2dh_init_interrupt()
170 gpio_init_callback(&iis2dh->gpio_cb, in iis2dh_init_interrupt()
174 if (gpio_add_callback(cfg->int_gpio.port, &iis2dh->gpio_cb) < 0) { in iis2dh_init_interrupt()
180 if (iis2dh_int1_pin_notification_mode_set(iis2dh->ctx, IIS2DH_INT1_PULSED)) { in iis2dh_init_interrupt()