Searched refs:drdy_gpio (Results 1 – 10 of 10) sorted by relevance
/Zephyr-Core-3.6.0/drivers/sensor/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-Core-3.6.0/drivers/sensor/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-Core-3.6.0/drivers/sensor/lsm6dsv16x/ |
D | lsm6dsv16x_trigger.c | 181 gpio_pin_interrupt_configure_dt(lsm6dsv16x->drdy_gpio, in lsm6dsv16x_handle_interrupt() 193 gpio_pin_interrupt_configure_dt(lsm6dsv16x->drdy_gpio, GPIO_INT_DISABLE); in lsm6dsv16x_gpio_callback() 234 lsm6dsv16x->drdy_gpio = (cfg->drdy_pin == 1) ? in lsm6dsv16x_init_interrupt() 239 if (!gpio_is_ready_dt(lsm6dsv16x->drdy_gpio)) { in lsm6dsv16x_init_interrupt() 257 ret = gpio_pin_configure_dt(lsm6dsv16x->drdy_gpio, GPIO_INPUT); in lsm6dsv16x_init_interrupt() 265 BIT(lsm6dsv16x->drdy_gpio->pin)); in lsm6dsv16x_init_interrupt() 267 if (gpio_add_callback(lsm6dsv16x->drdy_gpio->port, &lsm6dsv16x->gpio_cb) < 0) { in lsm6dsv16x_init_interrupt() 284 return gpio_pin_interrupt_configure_dt(lsm6dsv16x->drdy_gpio, in lsm6dsv16x_init_interrupt()
|
D | lsm6dsv16x.h | 106 struct gpio_dt_spec *drdy_gpio; member
|
/Zephyr-Core-3.6.0/drivers/sensor/ism330dhcx/ |
D | ism330dhcx_trigger.c | 132 if (!cfg->drdy_gpio.port) { in ism330dhcx_trigger_set() 207 gpio_pin_interrupt_configure_dt(&cfg->drdy_gpio, GPIO_INT_EDGE_TO_ACTIVE); in ism330dhcx_handle_interrupt() 219 gpio_pin_interrupt_configure_dt(&cfg->drdy_gpio, GPIO_INT_DISABLE); in ism330dhcx_gpio_callback() 259 if (!gpio_is_ready_dt(&cfg->drdy_gpio)) { in ism330dhcx_init_interrupt() 277 ret = gpio_pin_configure_dt(&cfg->drdy_gpio, GPIO_INPUT); in ism330dhcx_init_interrupt() 283 gpio_init_callback(&ism330dhcx->gpio_cb, ism330dhcx_gpio_callback, BIT(cfg->drdy_gpio.pin)); in ism330dhcx_init_interrupt() 285 if (gpio_add_callback(cfg->drdy_gpio.port, &ism330dhcx->gpio_cb) < 0) { in ism330dhcx_init_interrupt() 297 return gpio_pin_interrupt_configure_dt(&cfg->drdy_gpio, GPIO_INT_EDGE_TO_ACTIVE); in ism330dhcx_init_interrupt()
|
D | ism330dhcx.h | 45 struct gpio_dt_spec drdy_gpio; member
|
D | ism330dhcx.c | 748 if (config->drdy_gpio.port) { in ism330dhcx_init() 785 (.drdy_gpio = GPIO_DT_SPEC_INST_GET_OR(inst, drdy_gpios, { 0 }), \
|
/Zephyr-Core-3.6.0/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}), \
|