Lines Matching refs:handler
126 sensor_trigger_handler_t handler) in lis2dw12_trigger_set() argument
132 int state = (handler != NULL) ? PROPERTY_ENABLE : PROPERTY_DISABLE; in lis2dw12_trigger_set()
141 lis2dw12->drdy_handler = handler; in lis2dw12_trigger_set()
162 lis2dw12->tap_handler = handler; in lis2dw12_trigger_set()
168 lis2dw12->double_tap_handler = handler; in lis2dw12_trigger_set()
175 LOG_DBG("Set trigger %d (handler: %p)\n", trig->type, handler); in lis2dw12_trigger_set()
176 lis2dw12->motion_handler = handler; in lis2dw12_trigger_set()
184 LOG_DBG("Set trigger %d (handler: %p)\n", trig->type, handler); in lis2dw12_trigger_set()
185 lis2dw12->stationary_handler = handler; in lis2dw12_trigger_set()
192 LOG_DBG("Set freefall %d (handler: %p)\n", trig->type, handler); in lis2dw12_trigger_set()
193 lis2dw12->freefall_handler = handler; in lis2dw12_trigger_set()
219 sensor_trigger_handler_t handler = data->tap_handler; in lis2dw12_handle_single_tap_int() local
221 if (handler) { in lis2dw12_handle_single_tap_int()
222 handler(dev, data->tap_trig); in lis2dw12_handle_single_tap_int()
231 sensor_trigger_handler_t handler = data->double_tap_handler; in lis2dw12_handle_double_tap_int() local
233 if (handler) { in lis2dw12_handle_double_tap_int()
234 handler(dev, data->double_tap_trig); in lis2dw12_handle_double_tap_int()
245 sensor_trigger_handler_t handler = lis2dw12->motion_handler; in lis2dw12_handle_wu_ia_int() local
247 if (handler) { in lis2dw12_handle_wu_ia_int()
248 handler(dev, lis2dw12->motion_trig); in lis2dw12_handle_wu_ia_int()
259 sensor_trigger_handler_t handler = lis2dw12->stationary_handler; in lis2dw12_handle_sleep_change_int() local
261 if (handler) { in lis2dw12_handle_sleep_change_int()
262 handler(dev, lis2dw12->stationary_trig); in lis2dw12_handle_sleep_change_int()
273 sensor_trigger_handler_t handler = lis2dw12->freefall_handler; in lis2dw12_handle_ff_ia_int() local
275 if (handler) { in lis2dw12_handle_ff_ia_int()
276 handler(dev, lis2dw12->freefall_trig); in lis2dw12_handle_ff_ia_int()
506 lis2dw12->work.handler = lis2dw12_work_cb; in lis2dw12_init_interrupt()