Home
last modified time | relevance | path

Searched refs:alert_gpio (Results 1 – 15 of 15) sorted by relevance

/Zephyr-latest/drivers/sensor/ti/ina23x/
Dina23x_trigger.c23 int ina23x_trigger_mode_init(struct ina23x_trigger *trigg, const struct gpio_dt_spec *alert_gpio) in ina23x_trigger_mode_init() argument
27 if (!device_is_ready(alert_gpio->port)) { in ina23x_trigger_mode_init()
32 ret = gpio_pin_configure_dt(alert_gpio, GPIO_INPUT); in ina23x_trigger_mode_init()
40 BIT(alert_gpio->pin)); in ina23x_trigger_mode_init()
42 ret = gpio_add_callback(alert_gpio->port, &trigg->gpio_cb); in ina23x_trigger_mode_init()
48 return gpio_pin_interrupt_configure_dt(alert_gpio, in ina23x_trigger_mode_init()
Dina230_trigger.c52 if (!gpio_is_ready_dt(&config->alert_gpio)) { in ina230_trigger_mode_init()
59 ret = gpio_pin_configure_dt(&config->alert_gpio, GPIO_INPUT); in ina230_trigger_mode_init()
67 BIT(config->alert_gpio.pin)); in ina230_trigger_mode_init()
69 ret = gpio_add_callback(config->alert_gpio.port, &ina230->gpio_cb); in ina230_trigger_mode_init()
75 return gpio_pin_interrupt_configure_dt(&config->alert_gpio, in ina230_trigger_mode_init()
Dina23x_trigger.h22 const struct gpio_dt_spec *alert_gpio);
Dina237.h59 const struct gpio_dt_spec alert_gpio; member
Dina230.h61 const struct gpio_dt_spec alert_gpio; member
Dina237.c359 ret = ina23x_trigger_mode_init(&data->trigger, &config->alert_gpio); in ina237_init()
419 .alert_gpio = GPIO_DT_SPEC_INST_GET_OR(inst, alert_gpios, {0}), \
Dina230.c246 .alert_gpio = GPIO_DT_SPEC_INST_GET(inst, alert_gpios)
/Zephyr-latest/drivers/sensor/ti/tmp1075/
Dtmp1075.c169 const struct gpio_dt_spec *alert_gpio = &config->alert_gpio; in setup_interrupts() local
172 if (!gpio_is_ready_dt(alert_gpio)) { in setup_interrupts()
173 LOG_ERR("tmp1075: gpio controller %s not ready", alert_gpio->port->name); in setup_interrupts()
177 result = gpio_pin_configure_dt(alert_gpio, GPIO_INPUT); in setup_interrupts()
184 BIT(alert_gpio->pin)); in setup_interrupts()
186 result = gpio_add_callback(alert_gpio->port, &drv_data->temp_alert_gpio_cb); in setup_interrupts()
192 result = gpio_pin_interrupt_configure_dt(alert_gpio, GPIO_INT_EDGE_BOTH); in setup_interrupts()
247 .alert_gpio = GPIO_DT_SPEC_INST_GET_OR(inst, alert_gpios, {0}), \
Dtmp1075.h60 const struct gpio_dt_spec alert_gpio; member
/Zephyr-latest/drivers/sensor/sensirion/sht3xd/
Dsht3xd_trigger.c93 gpio_pin_interrupt_configure_dt(&cfg->alert_gpio, flags); in setup_alert()
137 if (gpio_pin_get_dt(&cfg->alert_gpio)) { in sht3xd_trigger_set()
195 if (!gpio_is_ready_dt(&cfg->alert_gpio)) { in sht3xd_init_interrupt()
200 rc = gpio_pin_configure_dt(&cfg->alert_gpio, GPIO_INPUT); in sht3xd_init_interrupt()
202 LOG_DBG("Failed to configure alert pin %u!", cfg->alert_gpio.pin); in sht3xd_init_interrupt()
207 BIT(cfg->alert_gpio.pin)); in sht3xd_init_interrupt()
208 rc = gpio_add_callback(cfg->alert_gpio.port, &data->alert_cb); in sht3xd_init_interrupt()
Dsht3xd.h51 struct gpio_dt_spec alert_gpio; member
Dsht3xd.c211 .alert_gpio = GPIO_DT_SPEC_INST_GET(inst, alert_gpios),
/Zephyr-latest/drivers/sensor/ti/tmp108/
Dtmp108.c325 const struct gpio_dt_spec *alert_gpio = &config->alert_gpio; in setup_interrupts() local
328 if (!device_is_ready(alert_gpio->port)) { in setup_interrupts()
330 alert_gpio->port->name); in setup_interrupts()
334 result = gpio_pin_configure_dt(alert_gpio, GPIO_INPUT); in setup_interrupts()
342 BIT(alert_gpio->pin)); in setup_interrupts()
344 result = gpio_add_callback(alert_gpio->port, in setup_interrupts()
351 result = gpio_pin_interrupt_configure_dt(alert_gpio, in setup_interrupts()
396 .alert_gpio = GPIO_DT_SPEC_INST_GET_OR(inst, \
Dtmp108.h107 const struct gpio_dt_spec alert_gpio; member
/Zephyr-latest/drivers/usb_c/tcpc/
Dps8xxx.c62 const struct gpio_dt_spec alert_gpio; member
694 gpio_pin_configure_dt(&cfg->alert_gpio, GPIO_INPUT); in ps8xxx_init_work_cb()
696 gpio_init_callback(&data->alert_cb, ps8xxx_alert_cb, BIT(cfg->alert_gpio.pin)); in ps8xxx_init_work_cb()
697 gpio_add_callback(cfg->alert_gpio.port, &data->alert_cb); in ps8xxx_init_work_cb()
698 gpio_pin_interrupt_configure_dt(&cfg->alert_gpio, GPIO_INT_EDGE_TO_ACTIVE); in ps8xxx_init_work_cb()
739 .alert_gpio = GPIO_DT_SPEC_GET(node, irq_gpios), \