Home
last modified time | relevance | path

Searched refs:drv_data (Results 1 – 25 of 85) sorted by relevance

1234

/Zephyr-Core-3.4.0/drivers/sensor/icm42605/
Dicm42605.c71 const struct icm42605_data *drv_data = dev->data; in icm42605_channel_get() local
75 icm42605_convert_accel(val, drv_data->accel_x, in icm42605_channel_get()
76 drv_data->accel_sensitivity_shift); in icm42605_channel_get()
77 icm42605_convert_accel(val + 1, drv_data->accel_y, in icm42605_channel_get()
78 drv_data->accel_sensitivity_shift); in icm42605_channel_get()
79 icm42605_convert_accel(val + 2, drv_data->accel_z, in icm42605_channel_get()
80 drv_data->accel_sensitivity_shift); in icm42605_channel_get()
83 icm42605_convert_accel(val, drv_data->accel_x, in icm42605_channel_get()
84 drv_data->accel_sensitivity_shift); in icm42605_channel_get()
87 icm42605_convert_accel(val, drv_data->accel_y, in icm42605_channel_get()
[all …]
Dicm42605_trigger.c22 struct icm42605_data *drv_data = dev->data; in icm42605_trigger_set() local
39 drv_data->data_ready_handler = handler; in icm42605_trigger_set()
40 drv_data->data_ready_trigger = trig; in icm42605_trigger_set()
42 drv_data->tap_handler = handler; in icm42605_trigger_set()
43 drv_data->tap_trigger = trig; in icm42605_trigger_set()
44 drv_data->tap_en = true; in icm42605_trigger_set()
46 drv_data->double_tap_handler = handler; in icm42605_trigger_set()
47 drv_data->double_tap_trigger = trig; in icm42605_trigger_set()
48 drv_data->tap_en = true; in icm42605_trigger_set()
63 struct icm42605_data *drv_data = in icm42605_gpio_callback() local
[all …]
/Zephyr-Core-3.4.0/drivers/i2s/
Di2s_nrfx.c189 static bool get_next_tx_buffer(struct i2s_nrfx_drv_data *drv_data, in get_next_tx_buffer() argument
192 int ret = k_msgq_get(&drv_data->tx_queue, in get_next_tx_buffer()
198 static bool get_next_rx_buffer(struct i2s_nrfx_drv_data *drv_data, in get_next_rx_buffer() argument
201 int ret = k_mem_slab_alloc(drv_data->rx.cfg.mem_slab, in get_next_rx_buffer()
213 static void free_tx_buffer(struct i2s_nrfx_drv_data *drv_data, in free_tx_buffer() argument
216 k_mem_slab_free(drv_data->tx.cfg.mem_slab, (void **)&buffer); in free_tx_buffer()
220 static void free_rx_buffer(struct i2s_nrfx_drv_data *drv_data, void *buffer) in free_rx_buffer() argument
222 k_mem_slab_free(drv_data->rx.cfg.mem_slab, &buffer); in free_rx_buffer()
226 static bool supply_next_buffers(struct i2s_nrfx_drv_data *drv_data, in supply_next_buffers() argument
229 drv_data->last_tx_buffer = next->p_tx_buffer; in supply_next_buffers()
[all …]
/Zephyr-Core-3.4.0/drivers/sensor/adxl362/
Dadxl362_trigger.c22 struct adxl362_data *drv_data = dev->data; in adxl362_thread_cb() local
31 k_mutex_lock(&drv_data->trigger_mutex, K_FOREVER); in adxl362_thread_cb()
32 if (drv_data->inact_handler != NULL) { in adxl362_thread_cb()
34 drv_data->inact_handler(dev, drv_data->inact_trigger); in adxl362_thread_cb()
38 if (drv_data->act_handler != NULL) { in adxl362_thread_cb()
40 drv_data->act_handler(dev, drv_data->act_trigger); in adxl362_thread_cb()
44 if (drv_data->drdy_handler != NULL && in adxl362_thread_cb()
46 drv_data->drdy_handler(dev, drv_data->drdy_trigger); in adxl362_thread_cb()
48 k_mutex_unlock(&drv_data->trigger_mutex); in adxl362_thread_cb()
54 struct adxl362_data *drv_data = in adxl362_gpio_callback() local
[all …]
/Zephyr-Core-3.4.0/drivers/sensor/tmp108/
Dtmp108_trigger.c23 struct tmp108_data *drv_data = CONTAINER_OF(delayable_work, in tmp108_trigger_handle_one_shot() local
30 tmp108_reg_read(drv_data->tmp108_dev, TI_TMP108_REG_CONF, &config); in tmp108_trigger_handle_one_shot()
33 shutdown_mode = (config & (TI_TMP108_CONF_M1(drv_data->tmp108_dev) | in tmp108_trigger_handle_one_shot()
34 TI_TMP108_CONF_M0(drv_data->tmp108_dev))) == 0; in tmp108_trigger_handle_one_shot()
37 ti_tmp108_read_temp(drv_data->tmp108_dev); in tmp108_trigger_handle_one_shot()
44 k_work_reschedule(&drv_data->scheduled_work, in tmp108_trigger_handle_one_shot()
50 if (drv_data->data_ready_handler) { in tmp108_trigger_handle_one_shot()
51 drv_data->data_ready_handler(drv_data->tmp108_dev, in tmp108_trigger_handle_one_shot()
52 drv_data->data_ready_trigger); in tmp108_trigger_handle_one_shot()
61 struct tmp108_data *drv_data = CONTAINER_OF(cb, in tmp108_trigger_handle_alert() local
[all …]
/Zephyr-Core-3.4.0/drivers/sensor/adt7310/
Dadt7310_trigger.c23 struct adt7310_data *drv_data = CONTAINER_OF(cb, struct adt7310_data, gpio_cb); in adt7310_gpio_callback() local
26 k_sem_give(&drv_data->gpio_sem); in adt7310_gpio_callback()
28 k_work_submit(&drv_data->work); in adt7310_gpio_callback()
33 static void adt7310_thread(struct adt7310_data *drv_data) in adt7310_thread() argument
36 k_sem_take(&drv_data->gpio_sem, K_FOREVER); in adt7310_thread()
37 if (drv_data->th_handler != NULL) { in adt7310_thread()
38 drv_data->th_handler(drv_data->dev, drv_data->th_trigger); in adt7310_thread()
46 struct adt7310_data *drv_data = CONTAINER_OF(work, struct adt7310_data, work); in adt7310_work_cb() local
48 if (drv_data->th_handler != NULL) { in adt7310_work_cb()
49 drv_data->th_handler(drv_data->dev, drv_data->th_trigger); in adt7310_work_cb()
[all …]
/Zephyr-Core-3.4.0/drivers/ieee802154/
Dieee802154_cc13xx_cc26xx.c59 struct ieee802154_cc13xx_cc26xx_data *drv_data);
74 struct ieee802154_cc13xx_cc26xx_data *drv_data = dev->data; in cmd_ieee_csma_callback() local
76 update_saved_cmdhandle(ch, (RF_CmdHandle *) &drv_data->saved_cmdhandle); in cmd_ieee_csma_callback()
90 struct ieee802154_cc13xx_cc26xx_data *drv_data = dev->data; in cmd_ieee_rx_callback() local
92 update_saved_cmdhandle(ch, (RF_CmdHandle *) &drv_data->saved_cmdhandle); in cmd_ieee_rx_callback()
105 ieee802154_cc13xx_cc26xx_rx_done(drv_data); in cmd_ieee_rx_callback()
132 struct ieee802154_cc13xx_cc26xx_data *drv_data = dev->data; in ieee802154_cc13xx_cc26xx_cca() local
135 status = RF_runImmediateCmd(drv_data->rf_handle, in ieee802154_cc13xx_cc26xx_cca()
136 (uint32_t *)&drv_data->cmd_ieee_cca_req); in ieee802154_cc13xx_cc26xx_cca()
142 switch (drv_data->cmd_ieee_cca_req.ccaInfo.ccaState) { in ieee802154_cc13xx_cc26xx_cca()
[all …]
Dieee802154_cc13xx_cc26xx_subg.c36 struct ieee802154_cc13xx_cc26xx_subg_data *drv_data);
38 struct ieee802154_cc13xx_cc26xx_subg_data *drv_data);
46 struct ieee802154_cc13xx_cc26xx_subg_data *drv_data);
293 struct ieee802154_cc13xx_cc26xx_subg_data *drv_data = dev->data; in cmd_prop_tx_adv_callback() local
297 op->commandNo, op->status, drv_data->cmd_prop_tx_adv.status, e); in cmd_prop_tx_adv_callback()
304 struct ieee802154_cc13xx_cc26xx_subg_data *drv_data = dev->data; in cmd_prop_rx_adv_callback() local
311 ieee802154_cc13xx_cc26xx_subg_rx_done(drv_data); in cmd_prop_rx_adv_callback()
348 struct ieee802154_cc13xx_cc26xx_subg_data *drv_data = dev->data; in ieee802154_cc13xx_cc26xx_subg_cca() local
351 drv_data->cmd_prop_cs.status = IDLE; in ieee802154_cc13xx_cc26xx_subg_cca()
352 drv_data->cmd_prop_cs.pNextOp = NULL; in ieee802154_cc13xx_cc26xx_subg_cca()
[all …]
/Zephyr-Core-3.4.0/drivers/sensor/mpu9250/
Dmpu9250.c102 struct mpu9250_data *drv_data = dev->data; in mpu9250_channel_get() local
109 mpu9250_convert_accel(val, drv_data->accel_x, in mpu9250_channel_get()
110 drv_data->accel_sensitivity_shift); in mpu9250_channel_get()
111 mpu9250_convert_accel(val + 1, drv_data->accel_y, in mpu9250_channel_get()
112 drv_data->accel_sensitivity_shift); in mpu9250_channel_get()
113 mpu9250_convert_accel(val + 2, drv_data->accel_z, in mpu9250_channel_get()
114 drv_data->accel_sensitivity_shift); in mpu9250_channel_get()
117 mpu9250_convert_accel(val, drv_data->accel_x, in mpu9250_channel_get()
118 drv_data->accel_sensitivity_shift); in mpu9250_channel_get()
121 mpu9250_convert_accel(val, drv_data->accel_y, in mpu9250_channel_get()
[all …]
Dmpu9250_trigger.c23 struct mpu9250_data *drv_data = dev->data; in mpu9250_trigger_set() local
37 drv_data->data_ready_handler = handler; in mpu9250_trigger_set()
42 drv_data->data_ready_trigger = trig; in mpu9250_trigger_set()
57 struct mpu9250_data *drv_data = in mpu9250_gpio_callback() local
59 const struct mpu9250_config *cfg = drv_data->dev->config; in mpu9250_gpio_callback()
71 k_sem_give(&drv_data->gpio_sem); in mpu9250_gpio_callback()
73 k_work_submit(&drv_data->work); in mpu9250_gpio_callback()
79 struct mpu9250_data *drv_data = dev->data; in mpu9250_thread_cb() local
83 if (drv_data->data_ready_handler != NULL) { in mpu9250_thread_cb()
84 drv_data->data_ready_handler(dev, in mpu9250_thread_cb()
[all …]
/Zephyr-Core-3.4.0/drivers/sensor/adxl372/
Dadxl372_trigger.c22 struct adxl372_data *drv_data = dev->data; in adxl372_thread_cb() local
31 if (drv_data->th_handler != NULL) { in adxl372_thread_cb()
37 drv_data->th_handler(dev, drv_data->th_trigger); in adxl372_thread_cb()
41 drv_data->th_handler(dev, drv_data->th_trigger); in adxl372_thread_cb()
45 if ((drv_data->drdy_handler != NULL) && in adxl372_thread_cb()
47 drv_data->drdy_handler(dev, drv_data->drdy_trigger); in adxl372_thread_cb()
58 struct adxl372_data *drv_data = in adxl372_gpio_callback() local
60 const struct adxl372_dev_config *cfg = drv_data->dev->config; in adxl372_gpio_callback()
65 k_sem_give(&drv_data->gpio_sem); in adxl372_gpio_callback()
67 k_work_submit(&drv_data->work); in adxl372_gpio_callback()
[all …]
/Zephyr-Core-3.4.0/drivers/sensor/fdc2x1x/
Dfdc2x1x_trigger.c23 struct fdc2x1x_data *drv_data = dev->data; in fdc2x1x_thread_cb() local
42 k_mutex_lock(&drv_data->trigger_mutex, K_FOREVER); in fdc2x1x_thread_cb()
43 if ((drv_data->drdy_handler != NULL) && FDC2X1X_STATUS_DRDY(status)) { in fdc2x1x_thread_cb()
44 drv_data->drdy_handler(dev, drv_data->drdy_trigger); in fdc2x1x_thread_cb()
46 k_mutex_unlock(&drv_data->trigger_mutex); in fdc2x1x_thread_cb()
52 struct fdc2x1x_data *drv_data = in fdc2x1x_gpio_callback() local
56 k_sem_give(&drv_data->gpio_sem); in fdc2x1x_gpio_callback()
58 k_work_submit(&drv_data->work); in fdc2x1x_gpio_callback()
63 static void fdc2x1x_thread(struct fdc2x1x_data *drv_data) in fdc2x1x_thread() argument
66 k_sem_take(&drv_data->gpio_sem, K_FOREVER); in fdc2x1x_thread()
[all …]
/Zephyr-Core-3.4.0/drivers/serial/
Duart_emul.c38 struct uart_emul_data *drv_data = dev->data; in uart_emul_poll_in() local
42 key = k_spin_lock(&drv_data->rx_lock); in uart_emul_poll_in()
43 read = ring_buf_get(drv_data->rx_rb, p_char, 1); in uart_emul_poll_in()
44 k_spin_unlock(&drv_data->rx_lock, key); in uart_emul_poll_in()
56 struct uart_emul_data *drv_data = dev->data; in uart_emul_poll_out() local
61 key = k_spin_lock(&drv_data->tx_lock); in uart_emul_poll_out()
62 written = ring_buf_put(drv_data->tx_rb, &out_char, 1); in uart_emul_poll_out()
63 k_spin_unlock(&drv_data->tx_lock, key); in uart_emul_poll_out()
73 if (drv_data->tx_data_ready_cb) { in uart_emul_poll_out()
74 (drv_data->tx_data_ready_cb)(dev, ring_buf_size_get(drv_data->tx_rb), in uart_emul_poll_out()
[all …]
/Zephyr-Core-3.4.0/drivers/gpio/
Dgpio_emul.c120 struct gpio_emul_data *drv_data = in get_pins_with_flags() local
126 if ((drv_data->flags[i] & mask) == flags) { in get_pins_with_flags()
192 struct gpio_emul_data *drv_data = in gpio_emul_gen_interrupt_bits() local
206 switch (drv_data->flags[i] & GPIO_EMUL_INT_BITMASK) { in gpio_emul_gen_interrupt_bits()
210 drv_data->interrupts |= BIT(i); in gpio_emul_gen_interrupt_bits()
211 *interrupts |= (BIT(i) & drv_data->enabled_interrupts); in gpio_emul_gen_interrupt_bits()
218 drv_data->interrupts |= BIT(i); in gpio_emul_gen_interrupt_bits()
219 *interrupts |= (BIT(i) & drv_data->enabled_interrupts); in gpio_emul_gen_interrupt_bits()
227 drv_data->interrupts |= BIT(i); in gpio_emul_gen_interrupt_bits()
228 *interrupts |= (BIT(i) & drv_data->enabled_interrupts); in gpio_emul_gen_interrupt_bits()
[all …]
Dgpio_mcp23xxx.c88 struct mcp23xxx_drv_data *drv_data = dev->data; in write_iocon() local
94 drv_data->reg_cache.iocon = extended_value; in write_iocon()
110 struct mcp23xxx_drv_data *drv_data = dev->data; in setup_pin_dir() local
111 uint16_t dir = drv_data->reg_cache.iodir; in setup_pin_dir()
112 uint16_t output = drv_data->reg_cache.gpio; in setup_pin_dir()
131 drv_data->reg_cache.gpio = output; in setup_pin_dir()
135 drv_data->reg_cache.iodir = dir; in setup_pin_dir()
151 struct mcp23xxx_drv_data *drv_data = dev->data; in setup_pin_pull() local
155 port = drv_data->reg_cache.gppu; in setup_pin_pull()
165 drv_data->reg_cache.gppu = port; in setup_pin_pull()
[all …]
/Zephyr-Core-3.4.0/drivers/sensor/mpu6050/
Dmpu6050_trigger.c21 struct mpu6050_data *drv_data = dev->data; in mpu6050_trigger_set() local
34 drv_data->data_ready_handler = handler; in mpu6050_trigger_set()
39 drv_data->data_ready_trigger = trig; in mpu6050_trigger_set()
50 struct mpu6050_data *drv_data = in mpu6050_gpio_callback() local
52 const struct mpu6050_config *cfg = drv_data->dev->config; in mpu6050_gpio_callback()
59 k_sem_give(&drv_data->gpio_sem); in mpu6050_gpio_callback()
61 k_work_submit(&drv_data->work); in mpu6050_gpio_callback()
67 struct mpu6050_data *drv_data = dev->data; in mpu6050_thread_cb() local
70 if (drv_data->data_ready_handler != NULL) { in mpu6050_thread_cb()
71 drv_data->data_ready_handler(dev, in mpu6050_thread_cb()
[all …]
Dmpu6050.c62 struct mpu6050_data *drv_data = dev->data; in mpu6050_channel_get() local
66 mpu6050_convert_accel(val, drv_data->accel_x, in mpu6050_channel_get()
67 drv_data->accel_sensitivity_shift); in mpu6050_channel_get()
68 mpu6050_convert_accel(val + 1, drv_data->accel_y, in mpu6050_channel_get()
69 drv_data->accel_sensitivity_shift); in mpu6050_channel_get()
70 mpu6050_convert_accel(val + 2, drv_data->accel_z, in mpu6050_channel_get()
71 drv_data->accel_sensitivity_shift); in mpu6050_channel_get()
74 mpu6050_convert_accel(val, drv_data->accel_x, in mpu6050_channel_get()
75 drv_data->accel_sensitivity_shift); in mpu6050_channel_get()
78 mpu6050_convert_accel(val, drv_data->accel_y, in mpu6050_channel_get()
[all …]
/Zephyr-Core-3.4.0/drivers/sensor/grow_r502a/
Dgrow_r502a_trigger.c32 struct grow_r502a_data *drv_data = dev->data; in process_int() local
34 if (drv_data->th_handler != NULL) { in process_int()
35 drv_data->th_handler(dev, drv_data->th_trigger); in process_int()
44 struct grow_r502a_data *drv_data = dev->data; in grow_r502a_trigger_set() local
47 drv_data->th_handler = handler; in grow_r502a_trigger_set()
48 drv_data->th_trigger = trig; in grow_r502a_trigger_set()
61 struct grow_r502a_data *drv_data = in grow_r502a_gpio_callback() local
64 setup_int(drv_data->gpio_dev, false); in grow_r502a_gpio_callback()
67 k_sem_give(&drv_data->gpio_sem); in grow_r502a_gpio_callback()
69 k_work_submit(&drv_data->work); in grow_r502a_gpio_callback()
[all …]
/Zephyr-Core-3.4.0/drivers/sensor/hmc5883l/
Dhmc5883l_trigger.c24 struct hmc5883l_data *drv_data = dev->data; in hmc5883l_trigger_set() local
35 drv_data->data_ready_handler = handler; in hmc5883l_trigger_set()
40 drv_data->data_ready_trigger = trig; in hmc5883l_trigger_set()
51 struct hmc5883l_data *drv_data = in hmc5883l_gpio_callback() local
53 const struct hmc5883l_config *config = drv_data->dev->config; in hmc5883l_gpio_callback()
60 k_sem_give(&drv_data->gpio_sem); in hmc5883l_gpio_callback()
62 k_work_submit(&drv_data->work); in hmc5883l_gpio_callback()
68 struct hmc5883l_data *drv_data = dev->data; in hmc5883l_thread_cb() local
71 if (drv_data->data_ready_handler != NULL) { in hmc5883l_thread_cb()
72 drv_data->data_ready_handler(dev, in hmc5883l_thread_cb()
[all …]
/Zephyr-Core-3.4.0/drivers/sensor/lis3mdl/
Dlis3mdl_trigger.c24 struct lis3mdl_data *drv_data = dev->data; in lis3mdl_trigger_set() local
44 drv_data->data_ready_handler = handler; in lis3mdl_trigger_set()
49 drv_data->data_ready_trigger = trig; in lis3mdl_trigger_set()
60 struct lis3mdl_data *drv_data = in lis3mdl_gpio_callback() local
62 const struct lis3mdl_config *config = drv_data->dev->config; in lis3mdl_gpio_callback()
69 k_sem_give(&drv_data->gpio_sem); in lis3mdl_gpio_callback()
71 k_work_submit(&drv_data->work); in lis3mdl_gpio_callback()
77 struct lis3mdl_data *drv_data = dev->data; in lis3mdl_thread_cb() local
80 if (drv_data->data_ready_handler != NULL) { in lis3mdl_thread_cb()
81 drv_data->data_ready_handler(dev, in lis3mdl_thread_cb()
[all …]
/Zephyr-Core-3.4.0/drivers/sensor/tmp007/
Dtmp007_trigger.c72 struct tmp007_data *drv_data = in tmp007_gpio_callback() local
75 setup_int(drv_data->dev, false); in tmp007_gpio_callback()
78 k_sem_give(&drv_data->gpio_sem); in tmp007_gpio_callback()
80 k_work_submit(&drv_data->work); in tmp007_gpio_callback()
86 struct tmp007_data *drv_data = dev->data; in tmp007_thread_cb() local
95 drv_data->drdy_handler != NULL) { in tmp007_thread_cb()
96 drv_data->drdy_handler(dev, drv_data->drdy_trigger); in tmp007_thread_cb()
100 drv_data->th_handler != NULL) { in tmp007_thread_cb()
101 drv_data->th_handler(dev, drv_data->th_trigger); in tmp007_thread_cb()
108 static void tmp007_thread(struct tmp007_data *drv_data) in tmp007_thread() argument
[all …]
/Zephyr-Core-3.4.0/drivers/sensor/lsm6dsl/
Dlsm6dsl_trigger.c33 struct lsm6dsl_data *drv_data = dev->data; in handle_irq() local
38 k_sem_give(&drv_data->gpio_sem); in handle_irq()
40 k_work_submit(&drv_data->work); in handle_irq()
49 struct lsm6dsl_data *drv_data = dev->data; in lsm6dsl_trigger_set() local
61 drv_data->data_ready_handler = handler; in lsm6dsl_trigger_set()
66 drv_data->data_ready_trigger = trig; in lsm6dsl_trigger_set()
79 struct lsm6dsl_data *drv_data = in lsm6dsl_gpio_callback() local
84 handle_irq(drv_data->dev); in lsm6dsl_gpio_callback()
89 struct lsm6dsl_data *drv_data = dev->data; in lsm6dsl_thread_cb() local
91 if (drv_data->data_ready_handler != NULL) { in lsm6dsl_thread_cb()
[all …]
/Zephyr-Core-3.4.0/drivers/sensor/adt7420/
Dadt7420_trigger.c32 struct adt7420_data *drv_data = dev->data; in handle_int() local
37 k_sem_give(&drv_data->gpio_sem); in handle_int()
39 k_work_submit(&drv_data->work); in handle_int()
45 struct adt7420_data *drv_data = dev->data; in process_int() local
55 if (drv_data->th_handler != NULL) { in process_int()
56 drv_data->th_handler(dev, drv_data->th_trigger); in process_int()
72 struct adt7420_data *drv_data = in adt7420_gpio_callback() local
75 handle_int(drv_data->dev); in adt7420_gpio_callback()
79 static void adt7420_thread(struct adt7420_data *drv_data) in adt7420_thread() argument
82 k_sem_take(&drv_data->gpio_sem, K_FOREVER); in adt7420_thread()
[all …]
/Zephyr-Core-3.4.0/drivers/sensor/amg88xx/
Damg88xx_trigger.c80 struct amg88xx_data *drv_data = in amg88xx_gpio_callback() local
82 const struct amg88xx_config *config = drv_data->dev->config; in amg88xx_gpio_callback()
87 k_sem_give(&drv_data->gpio_sem); in amg88xx_gpio_callback()
89 k_work_submit(&drv_data->work); in amg88xx_gpio_callback()
95 struct amg88xx_data *drv_data = dev->data; in amg88xx_thread_cb() local
104 if (drv_data->drdy_handler != NULL) { in amg88xx_thread_cb()
105 drv_data->drdy_handler(dev, drv_data->drdy_trigger); in amg88xx_thread_cb()
108 if (drv_data->th_handler != NULL) { in amg88xx_thread_cb()
109 drv_data->th_handler(dev, drv_data->th_trigger); in amg88xx_thread_cb()
116 static void amg88xx_thread(struct amg88xx_data *drv_data) in amg88xx_thread() argument
[all …]
/Zephyr-Core-3.4.0/drivers/sensor/bma280/
Dbma280_trigger.c74 struct bma280_data *drv_data = in bma280_gpio_callback() local
79 setup_int1(drv_data->dev, false); in bma280_gpio_callback()
82 k_sem_give(&drv_data->gpio_sem); in bma280_gpio_callback()
84 k_work_submit(&drv_data->work); in bma280_gpio_callback()
90 struct bma280_data *drv_data = dev->data; in bma280_thread_cb() local
99 drv_data->data_ready_handler != NULL && in bma280_thread_cb()
101 drv_data->data_ready_handler(dev, in bma280_thread_cb()
102 drv_data->data_ready_trigger); in bma280_thread_cb()
109 drv_data->any_motion_handler != NULL && in bma280_thread_cb()
111 drv_data->any_motion_handler(dev, in bma280_thread_cb()
[all …]

1234