| 
    Zephyr Project API
    3.4.0
    
   A Scalable Open Source RTOS 
   | 
 
Public LED driver APIs. More...
Go to the source code of this file.
Data Structures | |
| struct | led_info | 
| LED information structure.  More... | |
| struct | led_driver_api | 
| LED driver API.  More... | |
Typedefs | |
| typedef int(* | led_api_blink) (const struct device *dev, uint32_t led, uint32_t delay_on, uint32_t delay_off) | 
| Callback API for blinking an LED.  More... | |
| typedef int(* | led_api_get_info) (const struct device *dev, uint32_t led, const struct led_info **info) | 
| Optional API callback to get LED information.  More... | |
| typedef int(* | led_api_set_brightness) (const struct device *dev, uint32_t led, uint8_t value) | 
| Callback API for setting brightness of an LED.  More... | |
| typedef int(* | led_api_set_color) (const struct device *dev, uint32_t led, uint8_t num_colors, const uint8_t *color) | 
| Optional API callback to set the colors of a LED.  More... | |
| typedef int(* | led_api_on) (const struct device *dev, uint32_t led) | 
| Callback API for turning on an LED.  More... | |
| typedef int(* | led_api_off) (const struct device *dev, uint32_t led) | 
| Callback API for turning off an LED.  More... | |
| typedef int(* | led_api_write_channels) (const struct device *dev, uint32_t start_channel, uint32_t num_channels, const uint8_t *buf) | 
| Callback API for writing a strip of LED channels.  More... | |
Functions | |
| int | led_blink (const struct device *dev, uint32_t led, uint32_t delay_on, uint32_t delay_off) | 
| Blink an LED.  More... | |
| int | led_get_info (const struct device *dev, uint32_t led, const struct led_info **info) | 
| Get LED information.  More... | |
| int | led_set_brightness (const struct device *dev, uint32_t led, uint8_t value) | 
| Set LED brightness.  More... | |
| int | led_write_channels (const struct device *dev, uint32_t start_channel, uint32_t num_channels, const uint8_t *buf) | 
| Write/update a strip of LED channels.  More... | |
| int | led_set_channel (const struct device *dev, uint32_t channel, uint8_t value) | 
| Set a single LED channel.  More... | |
| int | led_set_color (const struct device *dev, uint32_t led, uint8_t num_colors, const uint8_t *color) | 
| Set LED color.  More... | |
| int | led_on (const struct device *dev, uint32_t led) | 
| Turn on an LED.  More... | |
| int | led_off (const struct device *dev, uint32_t led) | 
| Turn off an LED.  More... | |
Public LED driver APIs.