/Zephyr-latest/drivers/sensor/ti/ina23x/ |
D | ina23x_trigger.c | 23 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()
|
D | ina230_trigger.c | 52 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()
|
D | ina23x_trigger.h | 22 const struct gpio_dt_spec *alert_gpio);
|
D | ina237.h | 59 const struct gpio_dt_spec alert_gpio; member
|
D | ina230.h | 61 const struct gpio_dt_spec alert_gpio; member
|
D | ina237.c | 359 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}), \
|
D | ina230.c | 246 .alert_gpio = GPIO_DT_SPEC_INST_GET(inst, alert_gpios)
|
/Zephyr-latest/drivers/sensor/ti/tmp1075/ |
D | tmp1075.c | 169 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}), \
|
D | tmp1075.h | 60 const struct gpio_dt_spec alert_gpio; member
|
/Zephyr-latest/drivers/sensor/sensirion/sht3xd/ |
D | sht3xd_trigger.c | 93 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()
|
D | sht3xd.h | 51 struct gpio_dt_spec alert_gpio; member
|
D | sht3xd.c | 211 .alert_gpio = GPIO_DT_SPEC_INST_GET(inst, alert_gpios),
|
/Zephyr-latest/drivers/sensor/ti/tmp108/ |
D | tmp108.c | 325 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, \
|
D | tmp108.h | 107 const struct gpio_dt_spec alert_gpio; member
|
/Zephyr-latest/drivers/usb_c/tcpc/ |
D | ps8xxx.c | 62 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), \
|