Home
last modified time | relevance | path

Searched refs:drdy_gpio (Results 1 – 10 of 10) sorted by relevance

/Zephyr-Core-3.6.0/drivers/sensor/lis2de12/
Dlis2de12_trigger.c109 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()
Dlis2de12.h71 struct gpio_dt_spec *drdy_gpio; member
/Zephyr-Core-3.6.0/drivers/sensor/lis2du12/
Dlis2du12_trigger.c127 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()
Dlis2du12.h74 struct gpio_dt_spec *drdy_gpio; member
/Zephyr-Core-3.6.0/drivers/sensor/lsm6dsv16x/
Dlsm6dsv16x_trigger.c181 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()
Dlsm6dsv16x.h106 struct gpio_dt_spec *drdy_gpio; member
/Zephyr-Core-3.6.0/drivers/sensor/ism330dhcx/
Dism330dhcx_trigger.c132 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()
Dism330dhcx.h45 struct gpio_dt_spec drdy_gpio; member
Dism330dhcx.c748 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/
Dadc_max1125x.c207 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}), \