/Zephyr-latest/drivers/sensor/st/lis2dux12/ |
D | lis2dux12_trigger.c | 24 ret = gpio_pin_interrupt_configure_dt(data->drdy_gpio, GPIO_INT_DISABLE); in lis2dux12_gpio_callback() 68 data->drdy_gpio = (cfg->drdy_pin == 1) ? (struct gpio_dt_spec *)&cfg->int1_gpio in lis2dux12_trigger_init() 72 if (!gpio_is_ready_dt(data->drdy_gpio)) { in lis2dux12_trigger_init() 79 ret = gpio_pin_configure_dt(data->drdy_gpio, GPIO_INPUT); in lis2dux12_trigger_init() 85 gpio_init_callback(&data->gpio_cb, lis2dux12_gpio_callback, BIT(data->drdy_gpio->pin)); in lis2dux12_trigger_init() 87 ret = gpio_add_callback(data->drdy_gpio->port, &data->gpio_cb); in lis2dux12_trigger_init() 104 return gpio_pin_interrupt_configure_dt(data->drdy_gpio, GPIO_INT_EDGE_TO_ACTIVE); in lis2dux12_trigger_init() 120 if (data->drdy_gpio->port == NULL) { in lis2dux12_trigger_set() 125 ret = gpio_pin_interrupt_configure_dt(data->drdy_gpio, GPIO_INT_DISABLE); in lis2dux12_trigger_set() 148 return gpio_pin_interrupt_configure_dt(data->drdy_gpio, GPIO_INT_EDGE_TO_ACTIVE); in lis2dux12_trigger_set()
|
D | lis2dux12.h | 99 struct gpio_dt_spec *drdy_gpio; member
|
D | lis2dux12_api.c | 124 ret = gpio_pin_interrupt_configure_dt(lis2dux12->drdy_gpio, GPIO_INT_EDGE_TO_ACTIVE); in st_lis2dux12_handle_interrupt()
|
D | lis2duxs12_api.c | 124 ret = gpio_pin_interrupt_configure_dt(lis2duxs12->drdy_gpio, GPIO_INT_EDGE_TO_ACTIVE); in st_lis2duxs12_handle_interrupt()
|
/Zephyr-latest/drivers/sensor/st/lis2de12/ |
D | lis2de12_trigger.c | 109 gpio_pin_interrupt_configure_dt(lis2de12->drdy_gpio, in lis2de12_handle_interrupt() 121 gpio_pin_interrupt_configure_dt(lis2de12->drdy_gpio, GPIO_INT_DISABLE); in lis2de12_gpio_callback() 156 lis2de12->drdy_gpio = (struct gpio_dt_spec *)&cfg->int1_gpio; in lis2de12_init_interrupt() 159 if (!gpio_is_ready_dt(lis2de12->drdy_gpio)) { in lis2de12_init_interrupt() 161 lis2de12->drdy_gpio); in lis2de12_init_interrupt() 178 ret = gpio_pin_configure_dt(lis2de12->drdy_gpio, GPIO_INPUT); in lis2de12_init_interrupt() 186 BIT(lis2de12->drdy_gpio->pin)); in lis2de12_init_interrupt() 188 if (gpio_add_callback(lis2de12->drdy_gpio->port, &lis2de12->gpio_cb) < 0) { in lis2de12_init_interrupt() 193 return gpio_pin_interrupt_configure_dt(lis2de12->drdy_gpio, in lis2de12_init_interrupt()
|
D | lis2de12.h | 71 struct gpio_dt_spec *drdy_gpio; member
|
/Zephyr-latest/drivers/sensor/st/lis2du12/ |
D | lis2du12_trigger.c | 127 gpio_pin_interrupt_configure_dt(lis2du12->drdy_gpio, in lis2du12_handle_interrupt() 139 gpio_pin_interrupt_configure_dt(lis2du12->drdy_gpio, GPIO_INT_DISABLE); in lis2du12_gpio_callback() 174 lis2du12->drdy_gpio = (cfg->drdy_pin == 1) ? in lis2du12_init_interrupt() 179 if (!gpio_is_ready_dt(lis2du12->drdy_gpio)) { in lis2du12_init_interrupt() 181 lis2du12->drdy_gpio); in lis2du12_init_interrupt() 198 ret = gpio_pin_configure_dt(lis2du12->drdy_gpio, GPIO_INPUT); in lis2du12_init_interrupt() 206 BIT(lis2du12->drdy_gpio->pin)); in lis2du12_init_interrupt() 208 if (gpio_add_callback(lis2du12->drdy_gpio->port, &lis2du12->gpio_cb) < 0) { in lis2du12_init_interrupt() 213 return gpio_pin_interrupt_configure_dt(lis2du12->drdy_gpio, in lis2du12_init_interrupt()
|
D | lis2du12.h | 74 struct gpio_dt_spec *drdy_gpio; member
|
/Zephyr-latest/drivers/sensor/st/ism330dhcx/ |
D | ism330dhcx_trigger.c | 133 if (!cfg->drdy_gpio.port) { in ism330dhcx_trigger_set() 208 gpio_pin_interrupt_configure_dt(&cfg->drdy_gpio, GPIO_INT_EDGE_TO_ACTIVE); in ism330dhcx_handle_interrupt() 220 gpio_pin_interrupt_configure_dt(&cfg->drdy_gpio, GPIO_INT_DISABLE); in ism330dhcx_gpio_callback() 260 if (!gpio_is_ready_dt(&cfg->drdy_gpio)) { in ism330dhcx_init_interrupt() 278 ret = gpio_pin_configure_dt(&cfg->drdy_gpio, GPIO_INPUT); in ism330dhcx_init_interrupt() 284 gpio_init_callback(&ism330dhcx->gpio_cb, ism330dhcx_gpio_callback, BIT(cfg->drdy_gpio.pin)); in ism330dhcx_init_interrupt() 286 if (gpio_add_callback(cfg->drdy_gpio.port, &ism330dhcx->gpio_cb) < 0) { in ism330dhcx_init_interrupt() 298 return gpio_pin_interrupt_configure_dt(&cfg->drdy_gpio, GPIO_INT_EDGE_TO_ACTIVE); in ism330dhcx_init_interrupt()
|
D | ism330dhcx.h | 41 struct gpio_dt_spec drdy_gpio; member
|
D | ism330dhcx.c | 767 if (config->drdy_gpio.port) { in ism330dhcx_init() 804 (.drdy_gpio = GPIO_DT_SPEC_INST_GET_OR(inst, drdy_gpios, { 0 }), \
|
/Zephyr-latest/drivers/sensor/st/lsm6dsv16x/ |
D | lsm6dsv16x_trigger.c | 209 ret = gpio_pin_interrupt_configure_dt(lsm6dsv16x->drdy_gpio, in lsm6dsv16x_handle_interrupt() 239 ret = gpio_pin_interrupt_configure_dt(lsm6dsv16x->drdy_gpio, GPIO_INT_DISABLE); in lsm6dsv16x_gpio_callback() 320 lsm6dsv16x->drdy_gpio = (cfg->drdy_pin == 1) ? in lsm6dsv16x_init_interrupt() 325 if ((!ON_I3C_BUS(cfg) || (I3C_INT_PIN(cfg))) && !gpio_is_ready_dt(lsm6dsv16x->drdy_gpio)) { in lsm6dsv16x_init_interrupt() 348 ret = gpio_pin_configure_dt(lsm6dsv16x->drdy_gpio, GPIO_INPUT); in lsm6dsv16x_init_interrupt() 356 BIT(lsm6dsv16x->drdy_gpio->pin)); in lsm6dsv16x_init_interrupt() 358 if (gpio_add_callback(lsm6dsv16x->drdy_gpio->port, &lsm6dsv16x->gpio_cb) < 0) { in lsm6dsv16x_init_interrupt() 387 ret = gpio_pin_interrupt_configure_dt(lsm6dsv16x->drdy_gpio, in lsm6dsv16x_init_interrupt() 424 return gpio_pin_interrupt_configure_dt(lsm6dsv16x->drdy_gpio, in lsm6dsv16x_init_interrupt()
|
D | lsm6dsv16x_rtio_stream.c | 111 gpio_pin_interrupt_configure_dt(lsm6dsv16x->drdy_gpio, GPIO_INT_DISABLE); in lsm6dsv16x_submit_stream() 133 gpio_pin_interrupt_configure_dt(lsm6dsv16x->drdy_gpio, GPIO_INT_EDGE_TO_ACTIVE); in lsm6dsv16x_submit_stream() 151 gpio_pin_interrupt_configure_dt(lsm6dsv16x->drdy_gpio, GPIO_INT_EDGE_TO_ACTIVE); in lsm6dsv16x_complete_op_cb() 162 struct gpio_dt_spec *irq_gpio = lsm6dsv16x->drdy_gpio; in lsm6dsv16x_read_fifo_cb()
|
D | lsm6dsv16x.h | 168 struct gpio_dt_spec *drdy_gpio; member
|
/Zephyr-latest/drivers/adc/ |
D | adc_max1125x.c | 207 struct gpio_dt_spec drdy_gpio; member 737 err = gpio_pin_configure_dt(&config->drdy_gpio, GPIO_INPUT); in max1125x_init() 743 err = gpio_pin_interrupt_configure_dt(&config->drdy_gpio, GPIO_INT_EDGE_TO_ACTIVE); in max1125x_init() 750 BIT(config->drdy_gpio.pin)); in max1125x_init() 751 err = gpio_add_callback(config->drdy_gpio.port, &data->callback_data_ready); in max1125x_init() 788 .drdy_gpio = GPIO_DT_SPEC_GET_OR(DT_INST_MAX1125X(n, t), drdy_gpios, {0}), \
|