Lines Matching full:spec
97 const struct gpio_dt_spec spec; member
140 const struct gpio_dt_spec *spec = &cfg->spec; in w1_gpio_reset_bus() local
147 ret = gpio_pin_set_dt(spec, 0); in w1_gpio_reset_bus()
153 ret = gpio_pin_set_dt(spec, 1); in w1_gpio_reset_bus()
159 ret = gpio_pin_get_dt(spec); in w1_gpio_reset_bus()
176 const struct gpio_dt_spec *spec = &cfg->spec; in w1_gpio_read_bit() local
182 ret = gpio_pin_set_dt(spec, 0); in w1_gpio_read_bit()
188 ret = gpio_pin_set_dt(spec, 1); in w1_gpio_read_bit()
194 ret = gpio_pin_get_dt(spec); in w1_gpio_read_bit()
211 const struct gpio_dt_spec *spec = &cfg->spec; in w1_gpio_write_bit() local
217 ret = gpio_pin_set_dt(spec, 0); in w1_gpio_write_bit()
223 ret = gpio_pin_set_dt(spec, 1); in w1_gpio_write_bit()
287 const struct gpio_dt_spec *spec = &cfg->spec; in w1_gpio_init() local
290 if (gpio_is_ready_dt(spec)) { in w1_gpio_init()
291 int ret = gpio_pin_configure_dt(spec, GPIO_OUTPUT_INACTIVE | GPIO_OPEN_DRAIN | in w1_gpio_init()
294 LOG_ERR("Failed to configure GPIO port %s pin %d", spec->port->name, in w1_gpio_init()
295 spec->pin); in w1_gpio_init()
299 LOG_ERR("GPIO port %s is not ready", spec->port->name); in w1_gpio_init()
322 .spec = GPIO_DT_SPEC_INST_GET(inst, gpios)}; \