Lines Matching +full:valid +full:- +full:channels
5 * SPDX-License-Identifier: Apache-2.0
37 * Individual strip drivers may ignore lower-order bits if their
68 * @brief Callback API for updating channels without an RGB interpretation.
73 uint8_t *channels,
103 * @retval -errno negative errno code on failure.
112 (const struct led_strip_driver_api *)dev->api; in led_strip_update_rgb()
114 /* Allow for out-of-tree drivers that do not have this function for 2 Zephyr releases in led_strip_update_rgb()
117 if (api->length != NULL) { in led_strip_update_rgb()
118 /* Ensure supplied pixel size is valid for this device */ in led_strip_update_rgb()
119 if (api->length(dev) < num_pixels) { in led_strip_update_rgb()
120 return -ERANGE; in led_strip_update_rgb()
124 return api->update_rgb(dev, pixels, num_pixels); in led_strip_update_rgb()
130 * channel or LED. Channels are updated linearly in strip order.
133 * @param channels Array of per-channel data.
134 * @param num_channels Length of channels array.
137 * @retval -ENOSYS if not implemented.
138 * @retval -errno negative errno code on other failure.
140 * @warning This routine may overwrite @a channels.
143 uint8_t *channels, in led_strip_update_channels() argument
147 (const struct led_strip_driver_api *)dev->api; in led_strip_update_channels()
149 if (api->update_channels == NULL) { in led_strip_update_channels()
150 return -ENOSYS; in led_strip_update_channels()
153 return api->update_channels(dev, channels, num_channels); in led_strip_update_channels()
166 (const struct led_strip_driver_api *)dev->api; in led_strip_length()
168 return api->length(dev); in led_strip_length()