15#ifndef ZEPHYR_INCLUDE_DRIVERS_LED_STRIP_H_
16#define ZEPHYR_INCLUDE_DRIVERS_LED_STRIP_H_
39#ifdef CONFIG_LED_STRIP_RGB_SCRATCH
105 return api->
update_rgb(dev, pixels, num_pixels);
127 size_t num_channels) {
int(* led_api_update_rgb)(const struct device *dev, struct led_rgb *pixels, size_t num_pixels)
Callback API for updating an RGB LED strip.
Definition: led_strip.h:60
static int led_strip_update_rgb(const struct device *dev, struct led_rgb *pixels, size_t num_pixels)
Update an LED strip made of RGB pixels.
Definition: led_strip.h:99
static int led_strip_update_channels(const struct device *dev, uint8_t *channels, size_t num_channels)
Update an LED strip on a per-channel basis.
Definition: led_strip.h:125
int(* led_api_update_channels)(const struct device *dev, uint8_t *channels, size_t num_channels)
Callback API for updating channels without an RGB interpretation.
Definition: led_strip.h:70
__UINT8_TYPE__ uint8_t
Definition: stdint.h:58
Runtime device structure (in ROM) per driver instance.
Definition: device.h:367
const void * api
Definition: device.h:373
Color value for a single RGB LED.
Definition: led_strip.h:38
uint8_t r
Definition: led_strip.h:47
uint8_t g
Definition: led_strip.h:49
uint8_t b
Definition: led_strip.h:51
LED strip driver API.
Definition: led_strip.h:79
led_api_update_channels update_channels
Definition: led_strip.h:81
led_api_update_rgb update_rgb
Definition: led_strip.h:80