Lines Matching +full:pin +full:- +full:id
4 * SPDX-License-Identifier: Apache-2.0
36 static int gpio_ads114s0x_config(const struct device *dev, gpio_pin_t pin, gpio_flags_t flags) in gpio_ads114s0x_config() argument
38 const struct gpio_ads114s0x_config *config = dev->config; in gpio_ads114s0x_config()
42 return ads114s0x_gpio_deconfigure(config->parent, pin); in gpio_ads114s0x_config()
46 return -ENOTSUP; in gpio_ads114s0x_config()
50 return -ENOTSUP; in gpio_ads114s0x_config()
55 return -ENOTSUP; in gpio_ads114s0x_config()
60 err = ads114s0x_gpio_set_input(config->parent, pin); in gpio_ads114s0x_config()
63 err = ads114s0x_gpio_set_output(config->parent, pin, in gpio_ads114s0x_config()
67 return -ENOTSUP; in gpio_ads114s0x_config()
75 const struct gpio_ads114s0x_config *config = dev->config; in gpio_ads114s0x_port_get_raw()
77 return ads114s0x_gpio_port_get_raw(config->parent, value); in gpio_ads114s0x_port_get_raw()
83 const struct gpio_ads114s0x_config *config = dev->config; in gpio_ads114s0x_port_set_masked_raw()
85 return ads114s0x_gpio_port_set_masked_raw(config->parent, mask, value); in gpio_ads114s0x_port_set_masked_raw()
90 const struct gpio_ads114s0x_config *config = dev->config; in gpio_ads114s0x_port_set_bits_raw()
92 return ads114s0x_gpio_port_set_masked_raw(config->parent, pins, pins); in gpio_ads114s0x_port_set_bits_raw()
97 const struct gpio_ads114s0x_config *config = dev->config; in gpio_ads114s0x_port_clear_bits_raw()
99 return ads114s0x_gpio_port_set_masked_raw(config->parent, pins, 0); in gpio_ads114s0x_port_clear_bits_raw()
104 const struct gpio_ads114s0x_config *config = dev->config; in gpio_ads114s0x_port_toggle_bits()
106 return ads114s0x_gpio_port_toggle_bits(config->parent, pins); in gpio_ads114s0x_port_toggle_bits()
111 const struct gpio_ads114s0x_config *config = dev->config; in gpio_ads114s0x_init()
113 if (!device_is_ready(config->parent)) { in gpio_ads114s0x_init()
114 LOG_ERR("parent ads114s0x device '%s' not ready", config->parent->name); in gpio_ads114s0x_init()
115 return -EINVAL; in gpio_ads114s0x_init()
133 #define GPIO_ADS114S0X_DEVICE(id) \ argument
134 static const struct gpio_ads114s0x_config gpio_ads114s0x_##id##_cfg = { \
135 .common = {.port_pin_mask = GPIO_PORT_PIN_MASK_FROM_DT_INST(id)}, \
136 .parent = DEVICE_DT_GET(DT_INST_BUS(id)), \
139 static struct gpio_ads114s0x_data gpio_ads114s0x_##id##_data; \
141 DEVICE_DT_INST_DEFINE(id, gpio_ads114s0x_init, NULL, &gpio_ads114s0x_##id##_data, \
142 &gpio_ads114s0x_##id##_cfg, POST_KERNEL, \