Home
last modified time | relevance | path

Searched refs:trigger_gpios (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/drivers/sensor/hc_sr04/
Dhc_sr04.c29 struct gpio_dt_spec trigger_gpios; member
39 if (!gpio_is_ready_dt(&cfg->trigger_gpios)) { in hcsr04_configure_gpios()
40 LOG_ERR("GPIO '%s' not ready", cfg->trigger_gpios.port->name); in hcsr04_configure_gpios()
43 ret = gpio_pin_configure_dt(&cfg->trigger_gpios, GPIO_OUTPUT_LOW); in hcsr04_configure_gpios()
45 LOG_ERR("Failed to configure '%s' as output: %d", cfg->trigger_gpios.port->name, in hcsr04_configure_gpios()
132 ret = gpio_pin_set_dt(&cfg->trigger_gpios, 1); in hcsr04_sample_fetch()
140 ret = gpio_pin_set_dt(&cfg->trigger_gpios, 0); in hcsr04_sample_fetch()
181 .trigger_gpios = GPIO_DT_SPEC_INST_GET(index, trigger_gpios), \
/Zephyr-latest/tests/drivers/sensor/hc-sr04/src/
Dmain.c14 #define HC_SR04_GPIO_OUT DT_GPIO_CTLR(DT_INST(0, hc_sr04), trigger_gpios)
15 #define HC_SR04_PIN_OUT DT_GPIO_PIN(DT_INST(0, hc_sr04), trigger_gpios)