Lines Matching +full:one +full:- +full:wire
4 * SPDX-License-Identifier: Apache-2.0
13 * TLC59731 is a 3-Channel, 8-Bit, PWM LED Driver
14 * With Single-Wire Interface (EasySet)
17 * them. At least one pulse must be sent every T_CYCLE, which can be
25 * A one is represented by an additional pulse between 275ns and 2.5us
26 * (half a cycle) after the first one. We need at least some delay to get to
99 rgb_write_bit(led_dev, data & BIT((idx--))); in rgb_write_data()
108 const struct tlc59731_cfg *tlc_conf = dev->config; in tlc59731_led_set_color()
109 const struct gpio_dt_spec *led_gpio = &tlc_conf->sdi_gpio; in tlc59731_led_set_color()
112 rgb_write_data(led_gpio, pixel->r); in tlc59731_led_set_color()
113 rgb_write_data(led_gpio, pixel->g); in tlc59731_led_set_color()
114 rgb_write_data(led_gpio, pixel->b); in tlc59731_led_set_color()
137 const struct tlc59731_cfg *config = dev->config; in tlc59731_length()
139 return config->length; in tlc59731_length()
149 const struct tlc59731_cfg *tlc_conf = dev->config; in tlc59731_gpio_init()
150 const struct gpio_dt_spec *led = &tlc_conf->sdi_gpio; in tlc59731_gpio_init()
153 if (!device_is_ready(led->port)) { in tlc59731_gpio_init()
154 LOG_ERR("%s: no LEDs found (DT child nodes missing)", dev->name); in tlc59731_gpio_init()
155 err = -ENODEV; in tlc59731_gpio_init()
161 LOG_ERR("%s: Unable to setup SDI port", dev->name); in tlc59731_gpio_init()
162 err = -EIO; in tlc59731_gpio_init()
168 LOG_ERR("%s: Unable to set the SDI-GPIO)", dev->name); in tlc59731_gpio_init()
169 err = -EIO; in tlc59731_gpio_init()