Home
last modified time | relevance | path

Searched refs:gpio_drdy (Results 1 – 25 of 26) sorted by relevance

12

/Zephyr-latest/drivers/sensor/st/hts221/
Dhts221_trigger.c27 gpio_pin_interrupt_configure_dt(&cfg->gpio_drdy, flags); in setup_drdy()
79 if (gpio_pin_get_dt(&cfg->gpio_drdy) > 0) { in hts221_trigger_set()
129 if (cfg->gpio_drdy.port == NULL) { in hts221_init_interrupt()
134 if (!gpio_is_ready_dt(&cfg->gpio_drdy)) { in hts221_init_interrupt()
135 LOG_ERR("device %s is not ready", cfg->gpio_drdy.port->name); in hts221_init_interrupt()
142 status = gpio_pin_configure_dt(&cfg->gpio_drdy, GPIO_INPUT); in hts221_init_interrupt()
145 cfg->gpio_drdy.port->name, cfg->gpio_drdy.pin); in hts221_init_interrupt()
151 BIT(cfg->gpio_drdy.pin)); in hts221_init_interrupt()
153 status = gpio_add_callback(cfg->gpio_drdy.port, &data->drdy_cb); in hts221_init_interrupt()
Dhts221.h71 const struct gpio_dt_spec gpio_drdy; member
Dhts221.c222 .gpio_drdy = GPIO_DT_SPEC_INST_GET(inst, drdy_gpios)
/Zephyr-latest/drivers/sensor/st/iis2mdc/
Diis2mdc_trigger.c63 gpio_pin_interrupt_configure_dt(&config->gpio_drdy, in iis2mdc_handle_interrupt()
76 gpio_pin_interrupt_configure_dt(&config->gpio_drdy, GPIO_INT_DISABLE); in iis2mdc_gpio_callback()
117 if (!gpio_is_ready_dt(&config->gpio_drdy)) { in iis2mdc_init_interrupt()
133 ret = gpio_pin_configure_dt(&config->gpio_drdy, GPIO_INPUT); in iis2mdc_init_interrupt()
141 BIT(config->gpio_drdy.pin)); in iis2mdc_init_interrupt()
143 if (gpio_add_callback(config->gpio_drdy.port, &iis2mdc->gpio_cb) < 0) { in iis2mdc_init_interrupt()
148 return gpio_pin_interrupt_configure_dt(&config->gpio_drdy, in iis2mdc_init_interrupt()
Diis2mdc.h40 const struct gpio_dt_spec gpio_drdy; member
Diis2mdc.c342 .gpio_drdy = GPIO_DT_SPEC_INST_GET(inst, drdy_gpios),
/Zephyr-latest/drivers/sensor/st/lis2mdl/
Dlis2mdl_trigger.c76 gpio_pin_interrupt_configure_dt(&cfg->gpio_drdy, in lis2mdl_handle_interrupt()
89 gpio_pin_interrupt_configure_dt(&cfg->gpio_drdy, GPIO_INT_DISABLE); in lis2mdl_gpio_callback()
130 if (!gpio_is_ready_dt(&cfg->gpio_drdy)) { in lis2mdl_init_interrupt()
146 ret = gpio_pin_configure_dt(&cfg->gpio_drdy, GPIO_INPUT); in lis2mdl_init_interrupt()
154 BIT(cfg->gpio_drdy.pin)); in lis2mdl_init_interrupt()
156 if (gpio_add_callback(cfg->gpio_drdy.port, &lis2mdl->gpio_cb) < 0) { in lis2mdl_init_interrupt()
161 return gpio_pin_interrupt_configure_dt(&cfg->gpio_drdy, in lis2mdl_init_interrupt()
Dlis2mdl.h44 const struct gpio_dt_spec gpio_drdy; member
Dlis2mdl.c509 .gpio_drdy = GPIO_DT_SPEC_INST_GET(inst, irq_gpios)
/Zephyr-latest/drivers/sensor/st/iis2iclx/
Diis2iclx_trigger.c163 gpio_pin_interrupt_configure_dt(&cfg->gpio_drdy, in iis2iclx_handle_interrupt()
176 gpio_pin_interrupt_configure_dt(&cfg->gpio_drdy, GPIO_INT_DISABLE); in iis2iclx_gpio_callback()
217 if (!gpio_is_ready_dt(&cfg->gpio_drdy)) { in iis2iclx_init_interrupt()
235 ret = gpio_pin_configure_dt(&cfg->gpio_drdy, GPIO_INPUT); in iis2iclx_init_interrupt()
243 BIT(cfg->gpio_drdy.pin)); in iis2iclx_init_interrupt()
245 if (gpio_add_callback(cfg->gpio_drdy.port, &iis2iclx->gpio_cb) < 0) { in iis2iclx_init_interrupt()
257 if (gpio_pin_interrupt_configure_dt(&cfg->gpio_drdy, in iis2iclx_init_interrupt()
Diis2iclx.h50 const struct gpio_dt_spec gpio_drdy; member
Diis2iclx.c646 .gpio_drdy = GPIO_DT_SPEC_INST_GET(inst, drdy_gpios), \
/Zephyr-latest/drivers/sensor/st/iis2dlpc/
Diis2dlpc_trigger.c213 gpio_pin_interrupt_configure_dt(&cfg->gpio_drdy, in iis2dlpc_handle_interrupt()
226 gpio_pin_interrupt_configure_dt(&cfg->gpio_drdy, GPIO_INT_DISABLE); in iis2dlpc_gpio_callback()
268 if (!gpio_is_ready_dt(&cfg->gpio_drdy)) { in iis2dlpc_init_interrupt()
285 ret = gpio_pin_configure_dt(&cfg->gpio_drdy, GPIO_INPUT); in iis2dlpc_init_interrupt()
293 BIT(cfg->gpio_drdy.pin)); in iis2dlpc_init_interrupt()
295 if (gpio_add_callback(cfg->gpio_drdy.port, &iis2dlpc->gpio_cb) < 0) { in iis2dlpc_init_interrupt()
306 return gpio_pin_interrupt_configure_dt(&cfg->gpio_drdy, in iis2dlpc_init_interrupt()
Diis2dlpc.h73 const struct gpio_dt_spec gpio_drdy; member
Diis2dlpc.c443 .gpio_drdy = GPIO_DT_SPEC_INST_GET(inst, drdy_gpios), \
/Zephyr-latest/drivers/sensor/st/lsm6dso/
Dlsm6dso_trigger.c209 gpio_pin_interrupt_configure_dt(&cfg->gpio_drdy, in lsm6dso_handle_interrupt()
222 gpio_pin_interrupt_configure_dt(&cfg->gpio_drdy, GPIO_INT_DISABLE); in lsm6dso_gpio_callback()
264 if (!gpio_is_ready_dt(&cfg->gpio_drdy)) { in lsm6dso_init_interrupt()
282 ret = gpio_pin_configure_dt(&cfg->gpio_drdy, GPIO_INPUT); in lsm6dso_init_interrupt()
290 BIT(cfg->gpio_drdy.pin)); in lsm6dso_init_interrupt()
292 if (gpio_add_callback(cfg->gpio_drdy.port, &lsm6dso->gpio_cb) < 0) { in lsm6dso_init_interrupt()
309 return gpio_pin_interrupt_configure_dt(&cfg->gpio_drdy, in lsm6dso_init_interrupt()
Dlsm6dso.h63 const struct gpio_dt_spec gpio_drdy; member
Dlsm6dso.c890 .gpio_drdy = GPIO_DT_SPEC_INST_GET(inst, irq_gpios), \
/Zephyr-latest/drivers/sensor/st/lsm6dso16is/
Dlsm6dso16is_trigger.c236 gpio_pin_interrupt_configure_dt(&cfg->gpio_drdy, in lsm6dso16is_handle_interrupt()
249 gpio_pin_interrupt_configure_dt(&cfg->gpio_drdy, GPIO_INT_DISABLE); in lsm6dso16is_gpio_callback()
291 if (!gpio_is_ready_dt(&cfg->gpio_drdy)) { in lsm6dso16is_init_interrupt()
309 ret = gpio_pin_configure_dt(&cfg->gpio_drdy, GPIO_INPUT); in lsm6dso16is_init_interrupt()
317 BIT(cfg->gpio_drdy.pin)); in lsm6dso16is_init_interrupt()
319 if (gpio_add_callback(cfg->gpio_drdy.port, &lsm6dso16is->gpio_cb) < 0) { in lsm6dso16is_init_interrupt()
336 return gpio_pin_interrupt_configure_dt(&cfg->gpio_drdy, in lsm6dso16is_init_interrupt()
Dlsm6dso16is.h56 const struct gpio_dt_spec gpio_drdy; member
/Zephyr-latest/drivers/sensor/st/lis2dh/
Dlis2dh_trigger.c34 gpio_pin_interrupt_configure_dt(&cfg->gpio_drdy, in setup_int1()
49 if (cfg->gpio_drdy.port == NULL) { in lis2dh_trigger_drdy_set()
426 if (cfg->gpio_drdy.port && in lis2dh_thread_cb()
448 if (cfg->gpio_drdy.port && in lis2dh_thread_cb()
563 if (!gpio_is_ready_dt(&cfg->gpio_drdy)) { in lis2dh_init_interrupt()
565 if (cfg->gpio_drdy.port != NULL) { in lis2dh_init_interrupt()
566 LOG_ERR("device %s is not ready", cfg->gpio_drdy.port->name); in lis2dh_init_interrupt()
576 status = gpio_pin_configure_dt(&cfg->gpio_drdy, GPIO_INPUT); in lis2dh_init_interrupt()
579 cfg->gpio_drdy.port->name, cfg->gpio_drdy.pin); in lis2dh_init_interrupt()
585 BIT(cfg->gpio_drdy.pin)); in lis2dh_init_interrupt()
[all …]
Dlis2dh.c416 if (cfg->gpio_drdy.port != NULL || cfg->gpio_int.port != NULL) { in lis2dh_init()
524 .gpio_drdy = \
Dlis2dh.h220 const struct gpio_dt_spec gpio_drdy; member
/Zephyr-latest/drivers/adc/
Dadc_ads131m02.c121 const struct gpio_dt_spec gpio_drdy; member
525 ret = gpio_pin_configure_dt(&cfg->gpio_drdy, GPIO_INPUT); in ads131m02_configure_gpio()
530 ret = gpio_pin_interrupt_configure_dt(&cfg->gpio_drdy, in ads131m02_configure_gpio()
537 BIT(cfg->gpio_drdy.pin)); in ads131m02_configure_gpio()
539 return gpio_add_callback(cfg->gpio_drdy.port, &data->callback_drdy); in ads131m02_configure_gpio()
725 .gpio_drdy = GPIO_DT_SPEC_INST_GET(n, drdy_gpios), \
/Zephyr-latest/drivers/sensor/bosch/bmc150_magn/
Dbmc150_magn.h120 const struct device *gpio_drdy; member

12